Chron
1 month ago
2411
8
Laravel

Trying to access array offset on value of type null

Posted 1 month ago by Chron

I'm using Laravel 5.8 with php 7.4.

The error points at line 147 of /project/vendor/egulias/email-validator/EmailValidator/Parser/Parser.php

    protected function escaped()
    {
        $previous = $this->lexer->getPrevious();
 
 >>>>  if ($previous['type'] === EmailLexer::S_BACKSLASH
            &&
            $this->lexer->token['type'] !== EmailLexer::GENERIC
        ) {
            return true;
        }
 
        return false;
    }

Is there a way to fix this without downgrading php or upgrading laravel?

Please sign in or create an account to participate in this conversation.