From a3091b3617c53eab546e86374b59c1e7798a3b57 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 16 Nov 2021 13:33:45 +0100 Subject: [PATCH] `LdapDiscoveryPage::getValues()`: Do not return null --- modules/setup/application/forms/LdapDiscoveryPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/setup/application/forms/LdapDiscoveryPage.php b/modules/setup/application/forms/LdapDiscoveryPage.php index a07b8a4fa..7b5de1707 100644 --- a/modules/setup/application/forms/LdapDiscoveryPage.php +++ b/modules/setup/application/forms/LdapDiscoveryPage.php @@ -97,12 +97,12 @@ class LdapDiscoveryPage extends Form * * @param bool $suppressArrayNotation * - * @return array|null + * @return array */ public function getValues($suppressArrayNotation = false) { if (! isset($this->discovery) || ! $this->discovery->isSuccess()) { - return null; + return []; } $disc = $this->discovery; return array(