Skip to content

Commit 6cb52a2

Browse files
Try a mutant
1 parent 278db29 commit 6cb52a2

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())->yes()
58+
&& !(new ObjectType('BackedEnum'))->isSuperTypeOf($this->type->getBound())->no()
5959
) {
6060
return new UnionType([new IntegerType(), new StringType()]);
6161
}

0 commit comments

Comments
 (0)