We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5e485d commit 08307bdCopy full SHA for 08307bd
1 file changed
src/Type/MixedType.php
@@ -1067,13 +1067,7 @@ public function isScalar(): TrinaryLogic
1067
1068
public function isError(): TrinaryLogic
1069
{
1070
- if ($this->subtractedType !== null) {
1071
- if ($this->subtractedType->isSuperTypeOf(new ErrorType())->yes()) {
1072
- return TrinaryLogic::createNo();
1073
- }
1074
1075
-
1076
- return TrinaryLogic::createMaybe();
+ return TrinaryLogic::createNo();
1077
}
1078
1079
public function looseCompare(Type $type, PhpVersion $phpVersion): BooleanType
0 commit comments