src/Router.php
private static function getErrorCallback()
    {
        $errorCallback = self::$errorCallback;

        self::$errorCallback = false;

        if (! $errorCallback) {
            return false;
        }

        if (! is_object($errorCallback)) {
            return self::invokeObject($errorCallback);
        }

        return call_user_func($errorCallback);
    }
private static function getErrorCallback()
    {
        $errorCallback = self::$errorCallback;

        self::$errorCallback = false;

        if (! $errorCallback) {
            return false;
        }

        if (! is_object($errorCallback)) {
            return self::invokeObject($errorCallback);
        }

        return call_user_func($errorCallback);
    }
private static function getErrorCallback ( ) { $ errorCallback = self :: $ errorCallback ; self :: $ errorCallback = false ; if ( ! $ errorCallback ) { return false ; } if ( ! is_object ( $ errorCallback ) ) { return self :: invokeObject ( $ errorCallback ) ; } return call_user_func ( $ errorCallback ) ; }
Get error callback if route does not exists.

@since 1.0.3

@return callable
Get error callback if route does not exists .