Skip to content

Commit 198c9a7

Browse files
committed
Test if identityProviderConfiguration is not null
Before accessing its properties. This prevents warnings
1 parent 7a05dba commit 198c9a7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Entity/HostedEntities.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public function getIdentityProvider(): ?IdentityProvider
6363
return $this->identityProvider;
6464
}
6565

66-
if (!array_key_exists('enabled', $this->identityProviderConfiguration)) {
66+
if (is_null($this->identityProviderConfiguration) ||
67+
!array_key_exists('enabled', $this->identityProviderConfiguration)
68+
) {
6769
return null;
6870
}
6971

0 commit comments

Comments
 (0)