diff --git a/src/N98/Magento/Command/Config/DeleteCommand.php b/src/N98/Magento/Command/Config/DeleteCommand.php index b05e34ab3..e391a018e 100644 --- a/src/N98/Magento/Command/Config/DeleteCommand.php +++ b/src/N98/Magento/Command/Config/DeleteCommand.php @@ -98,7 +98,7 @@ protected function _deletePath(InputInterface $input, string $path, int $scopeId // Delete stores foreach (Mage::app()->getStores($force) as $store) { - $deleted[] = $this->deleteConfigEntry($path, 'stores', $store->getId()); + $deleted[] = $this->deleteConfigEntry($path, 'stores', (int) $store->getId()); } } else { $deleted[] = $this->deleteConfigEntry($path, $input->getOption('scope'), $scopeId); diff --git a/tests/N98/Magento/Command/Database/DumpCommandTest.php b/tests/N98/Magento/Command/Database/DumpCommandTest.php index 8002853e3..700fe5e51 100644 --- a/tests/N98/Magento/Command/Database/DumpCommandTest.php +++ b/tests/N98/Magento/Command/Database/DumpCommandTest.php @@ -11,7 +11,7 @@ use Symfony\Component\Console\Tester\CommandTester; /** - * @see \N98\Magento\Command\Database\DumpCommand + * @see DumpCommand */ final class DumpCommandTest extends TestCase { diff --git a/tests/N98/Magento/Command/Developer/Module/Rewrite/ClassExistsCheckerTest.php b/tests/N98/Magento/Command/Developer/Module/Rewrite/ClassExistsCheckerTest.php index 34eeacc22..63e773bf4 100644 --- a/tests/N98/Magento/Command/Developer/Module/Rewrite/ClassExistsCheckerTest.php +++ b/tests/N98/Magento/Command/Developer/Module/Rewrite/ClassExistsCheckerTest.php @@ -28,7 +28,7 @@ final class ClassExistsCheckerTest extends TestCase /** * @var array */ - private $cleanup = []; + private array $cleanup = []; protected function tearDown(): void { @@ -190,10 +190,10 @@ private function getAutoloader() private function noErrorExceptions($includeIni = true) { $displayErrorsOrig = ini_get('display_errors'); - $includeIni && ini_set('display_errors', false); + $includeIni && ini_set('display_errors', '0'); $logErrorsOrig = ini_get('log_errors'); - $includeIni && ini_set('log_errors', false); + $includeIni && ini_set('log_errors', '0'); $restore = function () use ($displayErrorsOrig, $logErrorsOrig): void { ini_set('display_errors', $displayErrorsOrig); diff --git a/tests/N98/Util/Console/Helper/DatabaseHelperTest.php b/tests/N98/Util/Console/Helper/DatabaseHelperTest.php index bba9623e9..14bc1d6f8 100644 --- a/tests/N98/Util/Console/Helper/DatabaseHelperTest.php +++ b/tests/N98/Util/Console/Helper/DatabaseHelperTest.php @@ -92,7 +92,7 @@ public function testGetMysqlVariable() // behavior with existent session variable (INTEGER) $databaseHelper->getConnection()->query('SET @existent = 14;'); $actual = $databaseHelper->getMysqlVariable('existent', '@'); - $this->assertSame(14, $actual); + $this->assertSame('14', $actual); // behavior with non-existent session variable $actual = $databaseHelper->getMysqlVariable('nonexistent', '@');