Skip to content

Commit ac46a7f

Browse files
Stop ignoring offsetAccess.invalidOffset (#4871)
1 parent e3ea780 commit ac46a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Php/VersionCompareFunctionDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function getTypeFromFunctionCall(
120120
}
121121

122122
$value = version_compare($version1String->getValue(), $version2String->getValue(), $operatorValue);
123-
$types[$value] = new ConstantBooleanType($value); // @phpstan-ignore offsetAccess.invalidOffset
123+
$types[(int) $value] = new ConstantBooleanType($value);
124124
}
125125
} else {
126126
$value = version_compare($version1String->getValue(), $version2String->getValue());

0 commit comments

Comments
 (0)