Skip to content

Commit

Permalink
fix a PHPStan error that happens in CI jobs only (II)
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Dec 31, 2024
1 parent 460d3fb commit 1e90fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function swoole_container_cpu_num()
$cpu_max = file_get_contents($cpu_max);
$fields = explode($cpu_max, ' ');
$quota_us = $fields[0];
if ($quota_us === 'max') { // @phpstan-ignore equal.alwaysFalse
if ($quota_us === 'max') { // @phpstan-ignore identical.alwaysFalse
return swoole_cpu_num();
}
$period_us = $fields[1] ?? 100000;
Expand Down

0 comments on commit 1e90fc0

Please sign in to comment.