Skip to content

Commit 72f2c51

Browse files
Revert "Try a mutant"
This reverts commit 6cb52a2.
1 parent 6cb52a2 commit 72f2c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/ValueOfType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function getResult(): Type
5555
if (
5656
$enumCases === []
5757
&& $this->type instanceof TemplateType
58-
&& !(new ObjectType('BackedEnum'))->isSuperTypeOf($this->type->getBound())->no()
58+
&& (new ObjectType('BackedEnum'))->isSuperTypeOf($this->type->getBound())->yes()
5959
) {
6060
return new UnionType([new IntegerType(), new StringType()]);
6161
}

0 commit comments

Comments
 (0)