diff --git a/app/Mage.php b/app/Mage.php index c305e38b929..321c410a477 100644 --- a/app/Mage.php +++ b/app/Mage.php @@ -27,7 +27,7 @@ if (!empty($_SERVER['MAGE_IS_DEVELOPER_MODE']) || !empty($_ENV['MAGE_IS_DEVELOPER_MODE'])) { Mage::setIsDeveloperMode(true); - ini_set('display_errors', 1); + ini_set('display_errors', '1'); ini_set('error_prepend_string', '
');
     ini_set('error_append_string', '
'); } @@ -455,7 +455,7 @@ public static function getDesign() /** * Retrieve a config instance * - * @return Mage_Core_Model_Config + * @return Mage_Core_Model_Config|null */ public static function getConfig() { diff --git a/phpstan.dist.baseline.neon b/phpstan.dist.baseline.neon index 6e3c6963e99..675d7ec6675 100644 --- a/phpstan.dist.baseline.neon +++ b/phpstan.dist.baseline.neon @@ -5,16 +5,6 @@ parameters: count: 1 path: app/Mage.php - - - message: "#^Negated boolean expression is always false\\.$#" - count: 2 - path: app/Mage.php - - - - message: "#^Parameter \\#2 \\$value of function ini_set expects string, int given\\.$#" - count: 1 - path: app/Mage.php - - message: "#^Right side of && is always false\\.$#" count: 1