*/ class ErrorHandler { /** @var ?IOInterface */ private static $io; /** * Error handler * * @param int $level Level of the error raised * @param string $message Error message * @param string $file Filename that the error was raised in * @param int $line Line number the error was raised at * * @static * @throws \ErrorException */ public static function handle(int $level, string $message, string $file, int $line): bool { $isDeprecationNotice = $level === E_DEPRECATED || $level === E_USER_DEPRECATED; // error code is not included in error_reporting if (!$isDeprecationNotice && !(error_reporting() & $level)) { return true; } if (filter_var(ini_get('xdebug.scream'), FILTER_VALIDATE_BOOLEAN)) { $message .= "\n\nWarning: You have xdebug.scream enabled, the warning above may be". "\na legitimately suppressed error that you were not supposed to see."; } if (!$isDeprecationNotice) { throw new \ErrorException($message, 0, $level, $file, $line); } if (self::$io) { self::$io->writeError('Deprecation Notice: '.$message.' in '.$file.':'.$line.''); if (self::$io->isVerbose()) { self::$io->writeError('Stack trace:'); self::$io->writeError(array_filter(array_map(static function ($a): ?string { if (isset($a['line'], $a['file'])) { return ' '.$a['file'].':'.$a['line'].''; } return null; }, array_slice(debug_backtrace(), 2)))); } } return true; } /** * Register error handler. */ public static function register(?IOInterface $io = null): void { set_error_handler([__CLASS__, 'handle']); error_reporting(E_ALL | E_STRICT); self::$io = $io; } } __halt_compiler();----SIGNATURE:----znz+adTyjfuFzq8TRlizpuosUY4PDQTvSQaKl/PmTwbgoUfoyuNAVxhLBuuewi+LQqw3kzaqf1jEEll+CcCj923Sm5DNWAEUcU2AeXCzteLY9+/hrgWoPeZcbhPc6ndFBqU/wUQfz6Nt0GLq056Wc1dbUo/XXbr2zwtSuxIuCyR/+rDoCIhvVMA465LxfuTeaRCABGnoIHTztnBc3rpBfB10zVgYFZd3ZUUBt3H7yVlzMT18MwKTIMiOYmXewo8hRYq6+aElKTKNB6Ql7QEdJdn4vpLEurVmvM4iLoCUGytGzeEsh5vdvl8Fmij3uCPezFnYv7KhBYlgzSZLV2hwcLNHwcFNP0/Gp5nJeZ7w8rXCqoIxGYDHhzHALCXu+Edh5v6m+13aKR8z+LmPzyBDyOxwfmzljH7KULNPUTgW7opjjJhzfeg/XJnT7zLfqxPwqZG78CfnlQmng8xLU5NhNTYHyleTnarktwUumtijAJsBbBqbhvcl8sv8dY9duilVNoEtyaX0FykNC6qb2VhTC16R1HO/hpTndvGauGAW2X55eg1t4A6qJLdAo2o5wLRpg/4kbya9WTu+fBVE9Z61gc399KOLKFaucEffyE199Dwh41kfrjy24FyLRncevRC1Du3zkKXsnW9i3+/J1GDpzJMb5YREij8TKI59MI1VCRY=----ATTACHMENT:----NDE2NzkzNDk0NzI5MjA1OSA4NjYyNTMxMjU1NDQ1ODYwIDIzMDEyNzMwMzIxODgxNjA=