Warning: Creating default object from empty value
Common error after migrating to a newer PHP
![](foto/Creating-default-object-from-empty-value.jpg)
![](/img/3/creating-default-object.png)
$myObj->hello = 'test';
but now you should initialize the object first:$myObj = new stdClass;
$myObj->hello = 'test';
$myObj->hello = 'test';
but now you should initialize the object first:$myObj = new stdClass;
$myObj->hello = 'test';
Comments