What is happening
Currently, there is not exactly clear, what type of variable annotation is preferred and should be used to maintain uniformity.
Several types of annotating variables can be found (placed after/before variable, type/name first)
For example
/** @var \Shopsys\FrameworkBundle\Model\Cart\Watcher\CartWatcherService $cartWatcherService */
$cartWatcherService = $this->getContainer()->get(CartWatcherService::class);
and
$cartWatcherService = $this->getContainer()->get(CartWatcherService::class);
/* @var $cartWatcherService \Shopsys\FrameworkBundle\Model\Cart\Watcher\CartWatcherService */
Expected result
We should agree on one style and force it. Even better, to have code style check for it.
What is happening
Currently, there is not exactly clear, what type of variable annotation is preferred and should be used to maintain uniformity.
Several types of annotating variables can be found (placed after/before variable, type/name first)
For example
and
Expected result
We should agree on one style and force it. Even better, to have code style check for it.