Skip to content

Commit 6370bbc

Browse files
committed
simplify MixedType::isError
1 parent 0cb91c1 commit 6370bbc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Type/MixedType.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,13 +1067,7 @@ public function isScalar(): TrinaryLogic
10671067

10681068
public function isError(): TrinaryLogic
10691069
{
1070-
if ($this->subtractedType !== null) {
1071-
if ($this->subtractedType->isSuperTypeOf(new ErrorType())->yes()) {
1072-
return TrinaryLogic::createNo();
1073-
}
1074-
}
1075-
1076-
return TrinaryLogic::createMaybe();
1070+
return TrinaryLogic::createNo();
10771071
}
10781072

10791073
public function looseCompare(Type $type, PhpVersion $phpVersion): BooleanType

0 commit comments

Comments
 (0)