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 6cb52a2 commit 72f2c51Copy full SHA for 72f2c51
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())->no()
+ && (new ObjectType('BackedEnum'))->isSuperTypeOf($this->type->getBound())->yes()
59
) {
60
return new UnionType([new IntegerType(), new StringType()]);
61
}
0 commit comments