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)
80
80
return EXIT_ERROR ;
81
81
}
82
82
83
- $ argument = isset ( $ params [0 ]) && $ params [ 0 ] ? $ params [ 0 ] : null ;
83
+ $ argument = $ params [0 ] ?? null ;
84
84
85
85
CheckPhpIni::run (argument: $ argument );
86
86
Original file line number Diff line number Diff line change 15
15
16
16
use CodeIgniter \Test \CIUnitTestCase ;
17
17
use CodeIgniter \Test \StreamFilterTrait ;
18
- use Config \App ;
19
18
use PHPUnit \Framework \Attributes \Group ;
20
19
21
20
/**
@@ -38,7 +37,7 @@ protected function tearDown(): void
38
37
parent ::tearDown ();
39
38
}
40
39
41
- protected function getBuffer ()
40
+ protected function getBuffer (): string
42
41
{
43
42
return $ this ->getStreamFilterBuffer ();
44
43
}
@@ -60,7 +59,7 @@ public function testCommandCheckOpcache(): void
60
59
{
61
60
command ('phpini:check opcache ' );
62
61
63
- $ this ->assertStringContainsString (" opcache.save_comments " , $ this ->getBuffer ());
62
+ $ this ->assertStringContainsString (' opcache.save_comments ' , $ this ->getBuffer ());
64
63
}
65
64
66
65
public function testCommandCheckNoExistsArg (): void
You can’t perform that action at this time.
0 commit comments