This outputs an empty object: <?php $object = (Object) null; var_dump($object);
Why is this?!
And what do you think should happen in the second case? It looks normal to me.
And what do you think should happen in the second case? It looks normal to me.