When the doctrine plugin is enabled, I get an error with when analysing this code in level 7:
<?php
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\Selectable;
class test
{
/**
* @var test[]&Collection&Selectable
*/
private $items;
/**
* @return test[]&Collection&Selectable
*/
public function getItems(): Collection
{
return $this->items;
}
}
The error:
Method test::getItems() with return type void returns *NEVER* but should not return anything.