Skip to content

Commit

Permalink
Reverted change & updated baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Jul 31, 2024
1 parent 2b77efb commit c6590e8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions phpstan-baseline.neon → phpstan.dist.baseline.neon
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
parameters:
ignoreErrors:
-
# Level 1
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: src/N98/Magento/Application/ConfigFile.php

-
message: "#^Call to an undefined static method N98\\\\Util\\\\OperatingSystem\\:\\:getCurrentPhpBinary\\(\\)\\.$#"
count: 1
path: src/N98/Magento/Command/Installer/SubCommand/InstallComposer.php

-
# Level 1
message: "#^Call to an undefined static method N98\\\\Util\\\\OperatingSystem\\:\\:locateProgram\\(\\)\\.$#"
count: 1
path: src/N98/Magento/Command/Installer/SubCommand/InstallComposer.php
1 change: 1 addition & 0 deletions phpstan.dist.neon
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
includes:
- phpstan.dist.baseline.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
paths:
Expand Down
4 changes: 2 additions & 2 deletions src/N98/Magento/Application/ConfigFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @package N98\Magento\Application
*/
final class ConfigFile
class ConfigFile
{
/**
* @var string
Expand All @@ -37,7 +37,7 @@ final class ConfigFile
*/
public static function createFromFile($path)
{
$configFile = new self();
$configFile = new static();
$configFile->loadFile($path);

return $configFile;
Expand Down

0 comments on commit c6590e8

Please sign in to comment.