We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d2b22f commit bb7c925Copy full SHA for bb7c925
src/Type/Php/IsNumericFunctionTypeSpecifyingExtension.php
@@ -36,7 +36,7 @@ public function specifyTypes(FunctionReflection $functionReflection, FuncCall $n
36
}
37
38
$argType = $scope->getType($node->args[0]->value);
39
- if (!(new StringType())->isSuperTypeOf($argType)->no() && !$argType instanceof MixedType) {
+ if ((new StringType())->isSuperTypeOf($argType)->yes()) {
40
return new SpecifiedTypes([], []);
41
42
0 commit comments