I\'ve been working on code that\'s intended to be used with objects, without really caring what the kind of object is. I wanted to type hint that the method being written ex
Although there is no type hinting for objects, you can use:
if (!is_object($arg)) { return; }