Removes incorrect array references that broke in PHP 7.4 as a result of calling an array offset on a null value/property. For reference, in the loadConfig() method in Menus.php:
return $options['default'];
On previous versions of PHP, this would evaluate as null when $options was equal to null. However, in PHP 7.4, referencing a null value as an array is no longer permitted, so errors were being thrown.
Removes incorrect array references that broke in PHP 7.4 as a result of calling an array offset on a null value/property. For reference, in the
loadConfig()
method inMenus.php
:On previous versions of PHP, this would evaluate as
null
when$options
was equal tonull
. However, in PHP 7.4, referencing a null value as an array is no longer permitted, so errors were being thrown.