File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
DependencyInjection/Compiler Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments