Skip to content

Commit

Permalink
Fix PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DonCallisto committed Oct 7, 2020
1 parent b447897 commit 5ff0587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ parameters:
level: 5
paths:
- src
- tests
- tests
reportUnmatchedIgnoredErrors: false
ignoreErrors: #see https://github.com/phpstan/phpstan/issues/1267#issuecomment-552874947 -> @todo remove when sf 3.4 support ends
- "#^Call to an undefined static method #"
1 change: 1 addition & 0 deletions src/Process/ProcessorCounter.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ private function readFromProcCPUInfo()
$process = Process::fromShellCommandline($executeCommand);
} else {
// Drop when sf 3.4 supports ends
/** @phpstan-ignore-next-line */ // @todo remove when sf 3.4 support ends
$process = new Process($executeCommand);
}
$process->run();
Expand Down

0 comments on commit 5ff0587

Please sign in to comment.