CodeIntel
CodeIntel copied to clipboard
PHP: Typed properties aren't used for completion
With the following code:
private EntityManagerInterface $entityManager;
Auto-completion for methods of $this->entityManager
does not work
The following works fine:
/**
* @var EntityManagerInterface
*/
private $entityManager;
Code used for testing
class X
{
private EntityManagerInterface $entityManager;
public function myMethod(): void
{
$this->entityManager-> # auto-completion fails here
}
}