In PHPStorm is there any way to do dynamic code completion like this.
* @param $className
* @return $className
$testValue = new $className();
$object = test('MyTestClass');
i.e. the IDE can see that 'MyTestClass' is being passed into the function, so the return type will be MyTestClass and then be able to do code-completion/inspection on the `$object` ?
If not, are there any plugins available that do something similar?