From 1e90fc0bb82976319af11d9ca1213f6585fda6fb Mon Sep 17 00:00:00 2001 From: Demin Yin Date: Tue, 31 Dec 2024 11:37:26 -0800 Subject: [PATCH] fix a PHPStan error that happens in CI jobs only (II) --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index 8fbf886..5463992 100644 --- a/src/functions.php +++ b/src/functions.php @@ -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;