Hello,
Let's say i have a function that returns an object of type SomeClass. And i have code like this:
$test = function_to_return_someclass();
Now i want to use the $test variable in an IDE, but i want it to understand that $test is of type SomeClass. I can do it easily with class variables by using the /** @var */ comment, but this is where i get stuck. And since trying something like:
$test = (SomeClass)function_to_return_someclass();
doesn't work, how can i instruct the IDE that $test is a SomeClass' object?