#61193DependencyInjection with @var uses everything as classname
Description
Hello,
this is my first issue.
If you use dependency injection in your controller und you use var to describe the type of the variable the ClassInfoFactory uses everything after var as class name
In function buildClassInfoFromClassname($className) the className isn’t parsed or formatted.
I need to write the name of the property after the type
Reference for phpdoc @var
[[http://phpdoc.org/docs/latest/references/phpdoc/tags/var.html]]
I need to write
/** * @var \BM\Simpleblog\Domain\Repository\BlogRepository $blogRepository * @inject */ protected $blogRepository;
but then “BM\Simpleblog\Domain\Repository\BlogRepository $blogRepository” is used as className.
$className = preg_replace(“/(\s.*)/”, “”, $className);
would do the job, but I cannot say if it breaks tests or why there is no parsing the variable, maybe there are reasons I dont know.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.