Skip to content

Commit 861cd9a

Browse files
authored
IntersectionType cannot be void
1 parent cd5401f commit 861cd9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Type/IntersectionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ public function getObjectTypeOrClassStringObjectType(): Type
806806

807807
public function isVoid(): TrinaryLogic
808808
{
809-
return $this->intersectResults(static fn (Type $type): TrinaryLogic => $type->isVoid());
809+
return TrinaryLogic::createNo();
810810
}
811811

812812
public function isScalar(): TrinaryLogic

0 commit comments

Comments
 (0)