Skip to content

Language Server: Autocomplete for PHPUnit #5210

@thomas-0816

Description

@thomas-0816

I'm using psalm-vscode-plugin v1.2.2 with vs-code 1.52.1 / 1.53.0 (and code-server 3.8.1) and tried to get auto-complete working for phpunit 9.5.2 (loaded as composer library). E.g. $this->assertTrue() cannot be autocompleted from PHPUnit\Framework\TestCase -> PHPUnit\Framework\Assert.
When I type $this->assertTrue() manually, detecting invalid parameters works.

107127636-b6cb1b00-68b7-11eb-86d5-db5a6e398fae

107127639-bd599280-68b7-11eb-9d46-1fdb24eb79e2

I'm not sure it's related to psalm-vscode-plugin or psalm itself, so I also reported this in psalm/psalm-vscode-plugin#34 .

Happens with psalm 4.4.1 and psalm 4.5.1

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