Skip to content

Commit 0697963

Browse files
committed
[+]: ignore psalm vs phpstan errors :/
1 parent c114280 commit 0697963

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

psalm.xml

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<LessSpecificReturnStatement errorLevel="suppress" />
2020
<MoreSpecificImplementedParamType errorLevel="suppress" />
2121
<UnresolvableInclude errorLevel="suppress" />
22+
<ParamNameMismatch errorLevel="suppress" />
23+
<ForbiddenCode errorLevel="suppress" />
24+
<RedundantCondition errorLevel="suppress" />
2225
</issueHandlers>
2326

2427
</psalm>

src/voku/SimplePhpParser/Parsers/Helper/Utils.php

+1
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ public static function getCpuCores(): int
393393
{
394394
if (\defined('PHP_WINDOWS_VERSION_MAJOR')) {
395395
$str = \trim((string) \shell_exec('wmic cpu get NumberOfCores 2>&1'));
396+
$matches = [];
396397
if (!$str || !\preg_match('#(\d+)#', $str, $matches)) {
397398
return 1;
398399
}

0 commit comments

Comments
 (0)