`LdapDiscoveryPage::getValues()`: Do not return null

This commit is contained in:
Sukhwinder Dhillon 2021-11-16 13:33:45 +01:00
parent d3bc7b6731
commit a3091b3617
1 changed files with 2 additions and 2 deletions

View File

@ -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(