Skip to content

Commit 1df3444

Browse files
committed
Fix bug in the Server config class caused by a missing ARRAY_FILTER_USE_KEY.
1 parent a2b4e07 commit 1df3444

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Config/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private function getRecommended() : array
3232
];
3333
}
3434

35-
private function getRequired() : array
35+
final public function getRequired() : array
3636
{
3737
$required = [
3838
OidcMeta::AUTHORIZATION_ENDPOINT,
@@ -54,7 +54,7 @@ private function getRequired() : array
5454

5555
final public function __construct(array $data, bool $strict = false)
5656
{
57-
$this->data = array_filter($data, [OidcMeta::class, 'has']);
57+
$this->data = array_filter($data, [OidcMeta::class, 'has'], ARRAY_FILTER_USE_KEY);
5858
$this->strict = $strict;
5959
}
6060

0 commit comments

Comments
 (0)