Skip to content

PHP: Typed properties aren't used for completion #15

@oradwell

Description

@oradwell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions