Skip to content

Incorrect CSS Selector error when valid HTML tag is being selected #2223

@Matt-PMCT

Description

@Matt-PMCT

When I have the Symfony Plugin enabled I am getting errors for valid $crawler->filter() calls in my unit tests.

For example, this code, which is virtually identical to the Symfony Documentation (https://symfony.com/doc/current/components/dom_crawler.html#node-traversing):
$crawler->filter('h3')
or
$crawler->filter('body')
Results in the IDE display an error stating " ':' expected " as seen in this picture:
image

If I disable the Symfony Plugin, PHPStorm generates no errors, so I believe the source of it is this plugin. The code and test runs properly, so this error appears to have something to do with this plugin.
The Crawler call is from this portion of Crawler.php:
image

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