问题
Trying to access array offset on value of type null
if ($previous['type'] === EmailLexer::S_BACKSLASH
回答1:
The error states that the variable $previous, which you expect to be an array, is actually null. You can't use an array offset on a null. Given that you said it was developed 2 years ago, probably some library changed and has different return types. Check where you instantiate $previous or how it is assigned a value.
回答2:
this error occur because of you set php version v7.4
so downgrade your php version to v7.1 or v7.2
otherwise update composer
composer update
来源:https://stackoverflow.com/questions/62913634/i-tried-to-open-my-laravel-application-which-was-developed-2yrs-ago-and-when-i-r