Skip to content

Commit dc8236e

Browse files
authored
Merge branch refs/heads/1.9.x into 1.10.x
2 parents 8107179 + 81b8cc4 commit dc8236e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: src/Type/Accessory/HasMethodType.php

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ private function getCanonicalMethodName(): string
5555

5656
public function accepts(Type $type, bool $strictTypes): TrinaryLogic
5757
{
58+
if ($type instanceof CompoundType) {
59+
return $type->isAcceptedBy($this, $strictTypes);
60+
}
61+
5862
return TrinaryLogic::createFromBoolean($this->equals($type));
5963
}
6064

Diff for: src/Type/Accessory/HasPropertyType.php

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ public function getPropertyName(): string
5757

5858
public function accepts(Type $type, bool $strictTypes): TrinaryLogic
5959
{
60+
if ($type instanceof CompoundType) {
61+
return $type->isAcceptedBy($this, $strictTypes);
62+
}
63+
6064
return TrinaryLogic::createFromBoolean($this->equals($type));
6165
}
6266

0 commit comments

Comments
 (0)