Skip to content

Commit 01e4c19

Browse files
committed
Update TrustAnchorConfigBag
1 parent 4e08a32 commit 01e4c19

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ValueAbstracts/TrustAnchorConfigBag.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,9 @@ public function has(string $entityId): bool
6969
}
7070

7171

72-
/**
73-
* @return array<non-empty-string,\SimpleSAML\OpenID\ValueAbstracts\TrustAnchorConfig>
74-
*/
75-
public function getInCommonWith(TrustAnchorConfigBag $otherBag): array
72+
public function getInCommonWith(TrustAnchorConfigBag $otherBag): TrustAnchorConfigBag
7673
{
77-
return array_intersect_key($this->getAll(), $otherBag->getAll());
74+
return new self(...array_intersect_key($this->getAll(), $otherBag->getAll()));
7875
}
7976

8077

0 commit comments

Comments
 (0)