Fixed PHP 8 compatibility issues

This commit is contained in:
vishalsingh.qlo325
2025-06-03 16:18:16 +05:30
parent b5e458e583
commit da49d2e262
9 changed files with 22 additions and 19 deletions

View File

@@ -1107,12 +1107,12 @@ class ToolsCore
*
* @see error_log()
* @param mixed $object
* @param int|null $message_type
* @param int $message_type
* @param string|null $destination
* @param string|null $extra_headers
* @return bool
*/
public static function error_log($object, $message_type = null, $destination = null, $extra_headers = null)
public static function error_log($object, $message_type = 0, $destination = null, $extra_headers = null)
{
return error_log(print_r($object, true), $message_type, $destination, $extra_headers);
}