From 21e7965ca39c39d86fbfd984ff78c4bda357712d Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Thu, 22 Aug 2024 16:18:20 +0700 Subject: [PATCH] fix: PHPStan errors --- system/Commands/Utilities/PhpIniCheck.php | 2 +- tests/system/Commands/Utilities/PhpIniCheckTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Commands/Utilities/PhpIniCheck.php b/system/Commands/Utilities/PhpIniCheck.php index df3d8376a7d3..fdc4e88a9982 100644 --- a/system/Commands/Utilities/PhpIniCheck.php +++ b/system/Commands/Utilities/PhpIniCheck.php @@ -80,7 +80,7 @@ public function run(array $params) return EXIT_ERROR; } - $argument = isset($params[0]) && $params[0] ? $params[0] : null; + $argument = isset($params[0]) ? $params[0] : null; CheckPhpIni::run(argument: $argument); diff --git a/tests/system/Commands/Utilities/PhpIniCheckTest.php b/tests/system/Commands/Utilities/PhpIniCheckTest.php index cf67a5aad2e3..7a5e204dcd2f 100644 --- a/tests/system/Commands/Utilities/PhpIniCheckTest.php +++ b/tests/system/Commands/Utilities/PhpIniCheckTest.php @@ -37,7 +37,7 @@ protected function tearDown(): void parent::tearDown(); } - protected function getBuffer() + protected function getBuffer(): string { return $this->getStreamFilterBuffer(); }