We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 278db29 commit 6cb52a2Copy full SHA for 6cb52a2
src/Type/ValueOfType.php
@@ -55,7 +55,7 @@ protected function getResult(): Type
55
if (
56
$enumCases === []
57
&& $this->type instanceof TemplateType
58
- && (new ObjectType('BackedEnum'))->isSuperTypeOf($this->type->getBound())->yes()
+ && !(new ObjectType('BackedEnum'))->isSuperTypeOf($this->type->getBound())->no()
59
) {
60
return new UnionType([new IntegerType(), new StringType()]);
61
}
0 commit comments