public function handleError(int $type, string $message, string $file = '', int $line = 0): bool
    {
        if (\error_reporting() === 0) {
            return false;
        }

        // Level is the current error reporting level to manage silent error.
        // Strong errors are not authorized to be silenced.
        $severity = \error_reporting() | \E_RECOVERABLE_ERROR | \E_USER_ERROR | \E_DEPRECATED | \E_USER_DEPRECATED;

        if ($severity) {
            throw new FatalErrorException($message, 0, $severity, $file, $line);
        }

        return true;
    }
public function handleError(int $type, string $message, string $file = '', int $line = 0): bool
    {
        if (\error_reporting() === 0) {
            return false;
        }

        // Level is the current error reporting level to manage silent error.
        // Strong errors are not authorized to be silenced.
        $severity = \error_reporting() | \E_RECOVERABLE_ERROR | \E_USER_ERROR | \E_DEPRECATED | \E_USER_DEPRECATED;

        if ($severity) {
            throw new FatalErrorException($message, 0, $severity, $file, $line);
        }

        return true;
    }
public function handleError ( int $ type , string $ message , string $ file = '' , int $ line = 0 ) : bool { if ( \ error_reporting ( ) === 0 ) { return false ; } // Level is the current error reporting level to manage silent error. // Strong errors are not authorized to be silenced. $ severity = \ error_reporting ( ) | \ E_RECOVERABLE_ERROR | \ E_USER_ERROR | \ E_DEPRECATED | \ E_USER_DEPRECATED ; if ( $ severity ) { throw new FatalErrorException ( $ message , 0 , $ severity , $ file , $ line ) ; } return true ; }
Convert errors into ErrorException objects.

This method catches PHP errors and converts them into ErrorException objects;
these ErrorException objects are then thrown and caught by Viserio's
built-in or custom error handlers.

@param int    $type    The numeric type of the Error
@param string $message The error message
@param string $file    The absolute path to the affected file
@param int    $line    The line number of the error in the affected file

@throws \Symfony\Component\Debug\Exception\FatalErrorException

@return bool Returns false when no handling happens so that the PHP engine can handle the error itself

@internal
Convert errors into ErrorException objects .