1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Fix all PHP 8.0 test failures

This commit is contained in:
Nick Liu
2020-11-27 17:00:32 +01:00
parent 072c1b3a90
commit f256b924ce
21 changed files with 103 additions and 34 deletions

View File

@@ -2552,10 +2552,10 @@ class error_handler
* @param $message
* @param $file
* @param $line
* @param $context
* @param $context (deprecated since PHP 7.2.0)
* @return bool
*/
function handle_error($type, $message, $file, $line, $context) {
function handle_error($type, $message, $file, $line, $context = null) {
$startup_error = (!defined('E107_DEBUG_LEVEL')); // Error before debug system initialized