It seems that there is no other solution besides downgrading php or upgrading laravel
Feb 16, 2020
16
Level 6
Trying to access array offset on value of type null
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?
Level 6
I just edited the required version of php in composer.json to ^7.4.1 and it worked. No need to update laravel and downgrade php since my OS already has installed php v7.4.1.
5 likes
Please or to participate in this conversation.