We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c114280 commit 0697963Copy full SHA for 0697963
psalm.xml
@@ -19,6 +19,9 @@
19
<LessSpecificReturnStatement errorLevel="suppress" />
20
<MoreSpecificImplementedParamType errorLevel="suppress" />
21
<UnresolvableInclude errorLevel="suppress" />
22
+ <ParamNameMismatch errorLevel="suppress" />
23
+ <ForbiddenCode errorLevel="suppress" />
24
+ <RedundantCondition errorLevel="suppress" />
25
</issueHandlers>
26
27
</psalm>
src/voku/SimplePhpParser/Parsers/Helper/Utils.php
@@ -393,6 +393,7 @@ public static function getCpuCores(): int
393
{
394
if (\defined('PHP_WINDOWS_VERSION_MAJOR')) {
395
$str = \trim((string) \shell_exec('wmic cpu get NumberOfCores 2>&1'));
396
+ $matches = [];
397
if (!$str || !\preg_match('#(\d+)#', $str, $matches)) {
398
return 1;
399
}
0 commit comments