Skip to content

Commit

Permalink
PHPStan: Mage.php (OpenMage#2819)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored and fballiano committed Dec 17, 2022
1 parent 071cdcd commit 1818ae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '<pre>');
ini_set('error_append_string', '</pre>');
}
Expand Down Expand Up @@ -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()
{
Expand Down
10 changes: 0 additions & 10 deletions phpstan.dist.baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1818ae9

Please sign in to comment.