Is there a standard way to type-hint the properties that exist on a stdClass?
For example, I use some API and get a JSON response. I then parse it with json_decode, but I want the IDE to be aware of what properties this stdClass object has.
I tried doing it like this:
$obj = json_decode($jsonResponse);
/** @var $obj \stdClass */
/** @property String $obj->prop */
But PhpStorm still doesn't recognise that $obj has the property prop.
Is there anyway to get this working?