Skip to content
Advertisement

Tag: php-7.4

PHP 7.4 Warning: Creating default object from empty value

The apache error logs are filling up with this. I don’t want to suppress all errors though, and understand I need to create an object explicitly somewhere but the syntax escapes me. Warning: Creating default object from empty value in libraries/cegcore2/libs/helper.php on line 22 Answer The problem is that assuming view is null, you should not refer its items. You

Array and string offset access syntax with curly braces is deprecated

I’ve just updated my php version to 7.4, and i noticed this error pops up: Array and string offset access syntax with curly braces is deprecated here is part of my code which is triggering the above error: there are few libraries in my project which is using curly braces to get individual characters inside a string, whats the best

Advertisement