Skip to content

Commit 36698fc

Browse files
committed
fix: errors on GA
1 parent 218b3b1 commit 36698fc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

system/Commands/Utilities/PhpIniCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/system/Commands/Utilities/PhpIniCheckTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
use CodeIgniter\Test\CIUnitTestCase;
1717
use CodeIgniter\Test\StreamFilterTrait;
18-
use Config\App;
1918
use 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

0 commit comments

Comments
 (0)