I'll definitely edit the post adding the relevant bits you mentioned.
Two special notes:
About 1. stdClass, you're right and I don't know why I just took it for granted without even testing. My Bad.
About 3. casting special types, you're right again. I didn't phrase it properly. Casting null to other types won't yield errors and casting resources too. Their values are normally nothing we should rely on, but doesn't mean one "can't" perform such casts.
Thanks a lot for your comments, they are incredibly helpful!
Cheers!
Two special notes:
About 1. stdClass, you're right and I don't know why I just took it for granted without even testing. My Bad.
About 3. casting special types, you're right again. I didn't phrase it properly. Casting null to other types won't yield errors and casting resources too. Their values are normally nothing we should rely on, but doesn't mean one "can't" perform such casts.
Thanks a lot for your comments, they are incredibly helpful! Cheers!