Defuse\Crypto\File::getLastErrorMessage PHP Méthode

getLastErrorMessage() private static méthode

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