src/PhpSigep/ErrorHandler.php
public static function stop($throw = false)
    {
        $errorException = null;

        if (static::$stack) {
            $errorException = array_pop(static::$stack);

            if (!static::$stack) {
                restore_error_handler();
            }

            if ($errorException && $throw) {
                throw $errorException;
            }
        }

        return $errorException;
    }
public static function stop($throw = false)
    {
        $errorException = null;

        if (static::$stack) {
            $errorException = array_pop(static::$stack);

            if (!static::$stack) {
                restore_error_handler();
            }

            if ($errorException && $throw) {
                throw $errorException;
            }
        }

        return $errorException;
    }
public static function stop ( $ throw = false ) { $ errorException = null ; if ( static :: $ stack ) { $ errorException = array_pop ( static :: $ stack ) ; if ( ! static :: $ stack ) { restore_error_handler ( ) ; } if ( $ errorException && $ throw ) { throw $ errorException ; } } return $ errorException ; }
Stopping the error handler

@param  bool $throw Throw the ErrorException if any
@return null|ErrorException
@throws ErrorException If an error has been catched and $throw is true
Stopping the error handler