CodeIntel icon indicating copy to clipboard operation
CodeIntel copied to clipboard

PHP: Typed properties aren't used for completion

Open oradwell opened this issue 3 years ago • 0 comments

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
    }
}

oradwell avatar May 26 '21 14:05 oradwell