We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e08a32 commit 01e4c19Copy full SHA for 01e4c19
src/ValueAbstracts/TrustAnchorConfigBag.php
@@ -69,12 +69,9 @@ public function has(string $entityId): bool
69
}
70
71
72
- /**
73
- * @return array<non-empty-string,\SimpleSAML\OpenID\ValueAbstracts\TrustAnchorConfig>
74
- */
75
- public function getInCommonWith(TrustAnchorConfigBag $otherBag): array
+ public function getInCommonWith(TrustAnchorConfigBag $otherBag): TrustAnchorConfigBag
76
{
77
- return array_intersect_key($this->getAll(), $otherBag->getAll());
+ return new self(...array_intersect_key($this->getAll(), $otherBag->getAll()));
78
79
80
0 commit comments