diff --git a/app/code/core/Mage/Install/Model/Installer.php b/app/code/core/Mage/Install/Model/Installer.php index 058c8502bad..b985a0fd3ad 100644 --- a/app/code/core/Mage/Install/Model/Installer.php +++ b/app/code/core/Mage/Install/Model/Installer.php @@ -222,7 +222,7 @@ public function createAdministrator($data) //to support old logic checking if real data was passed if (is_array($data)) { $data = $this->validateAndPrepareAdministrator($data); - if (is_array(data)) { + if (is_array($data)) { throw new Exception(Mage::helper('install')->__('Please correct the user data and try again.')); } } diff --git a/phpstan.dist.baseline.neon b/phpstan.dist.baseline.neon index 36ac815ce73..f60ebec1f16 100644 --- a/phpstan.dist.baseline.neon +++ b/phpstan.dist.baseline.neon @@ -3220,11 +3220,6 @@ parameters: count: 1 path: app/code/core/Mage/Install/Model/Config.php - - - message: "#^Constant data not found\\.$#" - count: 1 - path: app/code/core/Mage/Install/Model/Installer.php - - message: "#^Method Mage_Install_Model_Installer\\:\\:getDataModel\\(\\) should return Mage_Install_Model_Session but returns Mage_Install_Model_Installer_Data\\|null\\.$#" count: 1