Upgrade PHP 7.4 in Laravel project: trying to access array offset on value of type null error

Recently I had an error after upgrade of php version in Laravel project from 7.2 to 7.4.
In blade some on the null values were resulting in error.

As I realized that the issue is coming from null values, I inserted a value instead of null to avoid the page error.

Some people suggest degrading the version of php, but I prefer not to do that.

Leave a Reply

Your email address will not be published. Required fields are marked *