Skip to content

Allow differentiating beteen older classes and newer keywords #205

@RivenSkaye

Description

@RivenSkaye

I'm currently facing an issue with development that propagates very far through a code base making use of Spatie\Enum\Laravel\Enum due to an ambiguity with the new enum keyword.
Because PHP Tools fails to differentiate the name as part of a namespace, it stops analyzing the rest of the file and subsequently fails to recognize references throughout the project.
The code runs fine, the only issue is partially broken linting (and whatever impact that has on the project's progress speed).
Was hoping the issue would fix itself after some updates, but alas.
image
image
Was hoping the issue would fix itself after some updates, but alas.

Env info
OS: Windows 10
IDE: Visual Studio Code, also in VS Codium
PHP version: 8.1
PHP Tools version: 1.23.11293, also with pre-release 1.23.11333

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