-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I'm trying to use the PHP8 nullsafe operator but I'm getting an issue from PHP Code Sniffer as ImportDetection.Imports.RequireImports.Symbol.
So in the context of a class method this is fine:
$this->property;but I get an issue for this:
$this?->property;claiming Found unimported symbol 'property'.
The same is happening outside of a class method context too, when trying to access a property of an object using the ?-> operator.
This is happening with php_codesniffer v3.6.0 and phpcs-import-detection v1.3.1.
Please let me know if I'm doing something wrong or if you need more info from me!
trovster
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working