We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce65e05 commit 81b8cc4Copy full SHA for 81b8cc4
src/Type/Accessory/HasMethodType.php
@@ -50,6 +50,10 @@ private function getCanonicalMethodName(): string
50
51
public function accepts(Type $type, bool $strictTypes): TrinaryLogic
52
{
53
+ if ($type instanceof CompoundType) {
54
+ return $type->isAcceptedBy($this, $strictTypes);
55
+ }
56
+
57
return TrinaryLogic::createFromBoolean($this->equals($type));
58
}
59
src/Type/Accessory/HasPropertyType.php
@@ -52,6 +52,10 @@ public function getPropertyName(): string
60
61
0 commit comments