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
You could do something like this:
function myFunc ($obj) { if ($obj instanceof stdClass) { .... } }