- Issue created by @fenstrat
- Status changed to Needs review
over 1 year ago 1:48am 15 August 2023
In PHP 8.0 and above an E_WARNING is emitted because the array_map callback expects the parameter to be passed by reference: https://www.php.net/manual/en/function.array-map.phprefsect1-function.ar...
This happens when function _admin_select_check_access(&$item)
is called by admin_select_get_admin_select_info() which calls $info = array_map('_admin_select_check_access', $info);
.
Use the module with PHP 8.0+
Remove the parameter reference. It is not needed, _admin_select_check_access() already returns $info.
Needs review
1.0
Code