Defuse\Crypto\File::getLastErrorMessage PHP Method

getLastErrorMessage() private static method

Returns the last PHP error's or warning's message string.
private static getLastErrorMessage ( ) : string
return string
    private static function getLastErrorMessage()
    {
        $error = error_get_last();
        if ($error === null) {
            return '[no PHP error]';
        } else {
            return $error['message'];
        }
    }