Skip to content

Commit

Permalink
fix: errors on GA
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Aug 22, 2024
1 parent 218b3b1 commit 36698fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion system/Commands/Utilities/PhpIniCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function run(array $params)
return EXIT_ERROR;
}

$argument = isset($params[0]) && $params[0] ? $params[0] : null;
$argument = $params[0] ?? null;

CheckPhpIni::run(argument: $argument);

Expand Down
5 changes: 2 additions & 3 deletions tests/system/Commands/Utilities/PhpIniCheckTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

use CodeIgniter\Test\CIUnitTestCase;
use CodeIgniter\Test\StreamFilterTrait;
use Config\App;
use PHPUnit\Framework\Attributes\Group;

/**
Expand All @@ -38,7 +37,7 @@ protected function tearDown(): void
parent::tearDown();
}

protected function getBuffer()
protected function getBuffer(): string
{
return $this->getStreamFilterBuffer();
}
Expand All @@ -60,7 +59,7 @@ public function testCommandCheckOpcache(): void
{
command('phpini:check opcache');

$this->assertStringContainsString("opcache.save_comments", $this->getBuffer());
$this->assertStringContainsString('opcache.save_comments', $this->getBuffer());
}

public function testCommandCheckNoExistsArg(): void
Expand Down

0 comments on commit 36698fc

Please sign in to comment.