Skip to content

Setting to disable "$this can only be used in an object context." #536

Closed
@felixfbecker

Description

@felixfbecker

From @Gauss23 on November 20, 2017 15:23

Hello,

we just wondered about a lot of "syntax"-errors in our code. The message is:

$this can only be used in an object context.

Before your update to version 2.0.0 everything was fine. The files IntelliSense is now marking as wrong are config files, which are required/included in object context, so they are perfectly working. Of course IntelliSense cannot know that. Is there a chance to make this check optional?

Best regards,
Christopher

Copied from original issue: felixfbecker/vscode-php-intellisense#201

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions