Skip to content

Commit 62e4b4e

Browse files
committed
chore: fix deprecations
1 parent b601378 commit 62e4b4e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/Command/GeocodeCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testExecute(): void
6666
->willReturn([]);
6767

6868
$app = new Application($kernel);
69-
$app->add((new GeocodeCommand($geocoder))->setName('geocoder:geocode'));
69+
$app->addCommand((new GeocodeCommand($geocoder))->setName('geocoder:geocode'));
7070

7171
$command = $app->find('geocoder:geocode');
7272

tests/DependencyInjection/Compiler/FactoryValidatorPassTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ protected function tearDown(): void
3333
{
3434
$reflection = new \ReflectionObject($this->compilerPass);
3535
$prop = $reflection->getProperty('factoryServiceIds');
36-
$prop->setAccessible(true);
36+
if (PHP_VERSION_ID < 80100) {
37+
$prop->setAccessible(true);
38+
}
3739
$prop->setValue(null, []);
3840
}
3941

0 commit comments

Comments
 (0)