Skip to content

Commit 5ff0587

Browse files
committed
Fix PHPStan errors
1 parent b447897 commit 5ff0587

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

phpstan.neon

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ parameters:
55
level: 5
66
paths:
77
- src
8-
- tests
8+
- tests
9+
reportUnmatchedIgnoredErrors: false
10+
ignoreErrors: #see https://github.com/phpstan/phpstan/issues/1267#issuecomment-552874947 -> @todo remove when sf 3.4 support ends
11+
- "#^Call to an undefined static method #"

src/Process/ProcessorCounter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ private function readFromProcCPUInfo()
5555
$process = Process::fromShellCommandline($executeCommand);
5656
} else {
5757
// Drop when sf 3.4 supports ends
58+
/** @phpstan-ignore-next-line */ // @todo remove when sf 3.4 support ends
5859
$process = new Process($executeCommand);
5960
}
6061
$process->run();

0 commit comments

Comments
 (0)