I tried to open my Laravel application which was developed 2yrs ago and when I register a user I see the following error [duplicate]

前提是你 提交于 2021-02-11 13:53:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!