File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
system/Commands/Utilities
tests/system/Commands/Utilities Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function run(array $params)
8080 return EXIT_ERROR ;
8181 }
8282
83- $ argument = isset ( $ params [0 ]) && $ params [ 0 ] ? $ params [ 0 ] : null ;
83+ $ argument = $ params [0 ] ?? null ;
8484
8585 CheckPhpIni::run (argument: $ argument );
8686
Original file line number Diff line number Diff line change 1515
1616use CodeIgniter \Test \CIUnitTestCase ;
1717use CodeIgniter \Test \StreamFilterTrait ;
18- use Config \App ;
1918use PHPUnit \Framework \Attributes \Group ;
2019
2120/**
@@ -38,7 +37,7 @@ protected function tearDown(): void
3837 parent ::tearDown ();
3938 }
4039
41- protected function getBuffer ()
40+ protected function getBuffer (): string
4241 {
4342 return $ this ->getStreamFilterBuffer ();
4443 }
@@ -60,7 +59,7 @@ public function testCommandCheckOpcache(): void
6059 {
6160 command ('phpini:check opcache ' );
6261
63- $ this ->assertStringContainsString (" opcache.save_comments " , $ this ->getBuffer ());
62+ $ this ->assertStringContainsString (' opcache.save_comments ' , $ this ->getBuffer ());
6463 }
6564
6665 public function testCommandCheckNoExistsArg (): void
You can’t perform that action at this time.
0 commit comments