When I go to the Dashboard, I get the following error in Moodle 4.3 with PHP 8.2. Note that this error appears under the header so it is only visible in the source code view:
Deprecated: Automatic conversion of false to array is deprecated in /theme/trema/locallib.php on line 191
The reason this happens is that, if the following line fails to retrieve the information from the cache, the function returns 'false' and PHP 8.2 will not allow you to automatically convert this boolean into an array.
The attached PR addresses this issue. Hopefully, this will also address issue #168 .
Let me know if you have any questions or concerns.
Hi @rmady ,
When I go to the Dashboard, I get the following error in Moodle 4.3 with PHP 8.2. Note that this error appears under the header so it is only visible in the source code view:
The reason this happens is that, if the following line fails to retrieve the information from the cache, the function returns 'false' and PHP 8.2 will not allow you to automatically convert this boolean into an array.
The attached PR addresses this issue. Hopefully, this will also address issue #168 .
Let me know if you have any questions or concerns.
Best regards,
Michael Milette