diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index a281f902bb..825b1996c5 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -14184,12 +14184,6 @@ parameters: count: 1 path: src/Util.php - - - message: '#^Offset int\<1, 6\> on array\{string, string, string, string, string, string, string\} in isset\(\) always exists and is not nullable\.$#' - identifier: isset.offset - count: 1 - path: src/Util.php - - message: '#^Only booleans are allowed in a negated boolean, int\<0, 2\> given\.$#' identifier: booleanNot.exprNotBoolean diff --git a/src/Util.php b/src/Util.php index e577cc621a..2d3f66e9dd 100644 --- a/src/Util.php +++ b/src/Util.php @@ -330,7 +330,7 @@ class Util /** @infection-ignore-all */ for ($d = 6, $ex = 15; $d >= 1; $d--, $ex -= 3) { $unitSize = $li * 10 ** $ex; - if (isset($byteUnits[$d]) && $value >= $unitSize) { + if ($value >= $unitSize) { // use 1024.0 to avoid integer overflow on 64-bit machines $value = round($value / (1024 ** $d / $dh)) / $dh; $unit = $byteUnits[$d];