From 5ff058721de16eb4413218ec6b65cbdefe5ac6cc Mon Sep 17 00:00:00 2001 From: DonCallisto Date: Wed, 7 Oct 2020 11:30:49 +0200 Subject: [PATCH] Fix PHPStan errors --- phpstan.neon | 5 ++++- src/Process/ProcessorCounter.php | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 4f3c13b..8165cfb 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,4 +5,7 @@ parameters: level: 5 paths: - src - - tests \ No newline at end of file + - 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 #" \ No newline at end of file diff --git a/src/Process/ProcessorCounter.php b/src/Process/ProcessorCounter.php index 22bf2f5..f385207 100644 --- a/src/Process/ProcessorCounter.php +++ b/src/Process/ProcessorCounter.php @@ -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();