@@ -74,7 +74,7 @@ protected function tearDown(): void
7474 if (9 === $ i ) {
7575 continue ;
7676 }
77- pcntl_signal ($ i , SIG_DFL );
77+ pcntl_signal ($ i , \ SIG_DFL );
7878 }
7979 }
8080 }
@@ -948,7 +948,7 @@ public function testRenderAnonymousException()
948948 $ application = new Application ();
949949 $ application ->setAutoExit (false );
950950 $ application ->register ('foo ' )->setCode (function () {
951- throw new class ('' ) extends \InvalidArgumentException { };
951+ throw new class ('' ) extends \InvalidArgumentException {};
952952 });
953953 $ tester = new ApplicationTester ($ application );
954954
@@ -958,7 +958,7 @@ public function testRenderAnonymousException()
958958 $ application = new Application ();
959959 $ application ->setAutoExit (false );
960960 $ application ->register ('foo ' )->setCode (function () {
961- throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , (new class () { })::class));
961+ throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , (new class () {})::class));
962962 });
963963 $ tester = new ApplicationTester ($ application );
964964
@@ -974,7 +974,7 @@ public function testRenderExceptionStackTraceContainsRootException()
974974 $ application = new Application ();
975975 $ application ->setAutoExit (false );
976976 $ application ->register ('foo ' )->setCode (function () {
977- throw new class ('' ) extends \InvalidArgumentException { };
977+ throw new class ('' ) extends \InvalidArgumentException {};
978978 });
979979 $ tester = new ApplicationTester ($ application );
980980
@@ -984,7 +984,7 @@ public function testRenderExceptionStackTraceContainsRootException()
984984 $ application = new Application ();
985985 $ application ->setAutoExit (false );
986986 $ application ->register ('foo ' )->setCode (function () {
987- throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , (new class () { })::class));
987+ throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , (new class () {})::class));
988988 });
989989 $ tester = new ApplicationTester ($ application );
990990
@@ -2081,7 +2081,7 @@ public function testSetSignalsToDispatchEvent()
20812081
20822082 // And now we test without the blank handler
20832083 $ blankHandlerSignaled = false ;
2084- pcntl_signal (\SIGUSR1 , SIG_DFL );
2084+ pcntl_signal (\SIGUSR1 , \ SIG_DFL );
20852085
20862086 $ application = $ this ->createSignalableApplication ($ command , $ dispatcher );
20872087 $ application ->setSignalsToDispatchEvent (\SIGUSR1 );
@@ -2344,7 +2344,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
23442344
23452345 for ($ i = 0 ; $ i <= 10 && $ this ->shouldContinue ; ++$ i ) {
23462346 $ output ->writeln ('Still processing... ' );
2347- posix_kill (posix_getpid (), SIGINT );
2347+ posix_kill (posix_getpid (), \ SIGINT );
23482348 }
23492349
23502350 $ output ->writeln ('Wrapping up, wait a sec... ' );
0 commit comments