Skip to content

Commit bb7c925

Browse files
committed
Fix is_numeric
1 parent 2d2b22f commit bb7c925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Php/IsNumericFunctionTypeSpecifyingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function specifyTypes(FunctionReflection $functionReflection, FuncCall $n
3636
}
3737

3838
$argType = $scope->getType($node->args[0]->value);
39-
if (!(new StringType())->isSuperTypeOf($argType)->no() && !$argType instanceof MixedType) {
39+
if ((new StringType())->isSuperTypeOf($argType)->yes()) {
4040
return new SpecifiedTypes([], []);
4141
}
4242

0 commit comments

Comments
 (0)