Skip to content

Commit 059d5df

Browse files
committed
feat: drop support for PHP < 8.1, symfony < 6.4
1 parent 833d9d0 commit 059d5df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/Command/GeocodeCommandTest.php

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

6868
$app = new Application($kernel);
69-
$app->addCommand((new GeocodeCommand($geocoder))->setName('geocoder:geocode'));
69+
70+
if (method_exists($app, 'addCommand')) {
71+
$app->addCommand((new GeocodeCommand($geocoder))->setName('geocoder:geocode'));
72+
} else {
73+
$app->add((new GeocodeCommand($geocoder))->setName('geocoder:geocode'));
74+
}
7075

7176
$command = $app->find('geocoder:geocode');
7277

0 commit comments

Comments
 (0)