*/ 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:----TMCPaSGo2l7HByWyaQIoQi3pnWgQRfeJ3mviWu92gOegw3wOK4UTH4JzyfNoQpq55rRtdQ5oNz5Iaf2gqbgxkSNWdSvmM6lvVYcmdZDLi/2oYaWMQj7ZdxYP4HPToJ94kufkCVXcpfxg/h5nbFYJcZLuQsgGkqFlwfNaAJNuzLmtibSwdTUOxb74IEJqaVOmAcnczpzXwnXz82Zd/NDM5F6I1f5R8Y9Cj0HP+VbAODAwPnm7Wv1PPaNX7LMup+VjcyZNlHym1zQvWBWLhr+JRndEQBaaDAiIhV9A8ioLmviHmqfQ9/6DhdFxX8W/XrK6XveIOsprqJTfe8Wm0t5WSxWCGtG3O+2bVgkqHXtHi9y4aoOvI/cFE0Mlx38MW34587TshqsVd66VrEh9PZRQIDDNAS+3l0V0YslrXFCzVgAxN8ctzlxP2XV2la0VajJqMWLeam6cFP/uS1/NJW+3EaUuVRFKNsP4FnZ2LcaHmvOvbgMDAx9q+3NsnRODBrbIs5nsWmeuBLsJ+UxMDGTCPhI9JnY0QbQ7/PtE0UkkdfxowxQZkA4Xh0jWZBWyNlLhHTUTUgGARfK4CsNIu6iA3FyPZtgzsppnX5cI04miVvrydv7rWt8cV0wuBXIazE9EC4UiRSEPgZrOV0gHbd631aHe97sFOFtwHeda3hcc/5Y=----ATTACHMENT:----NDc5OTExNjEzMjU1OTYzMiA3NTUxNDk4MjY5MTgzODUwIDY5NjYzMjcwMzM4NDA4ODQ=