We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the following code, the double-colon has no immediate meaning for string interpolation, so should not be highlighted.
class Test { const FOO = 'foo'; } $name = 'FOO'; echo constant("Test::$name"); // bad - highlights ::$name echo constant("Test::{$name}"); // ok - highlights {$name} echo constant("Test::${name}"); // ok - highlights ${name} (though this syntax is deprecated in PHP 8.2)
Related issue: "\$obj->name" should not highlight the ->name part.
"\$obj->name"
->name
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the following code, the double-colon has no immediate meaning for string interpolation, so should not be highlighted.
Related issue:
"\$obj->name"
should not highlight the->name
part.Screenshot
The text was updated successfully, but these errors were encountered: