You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following code, the double-colon has no immediate meaning for string interpolation, so should not be highlighted.
class Test {
constFOO = 'foo';
}
$name = 'FOO';
echoconstant("Test::$name"); // bad - highlights ::$nameechoconstant("Test::{$name}"); // ok - highlights {$name}echoconstant("Test::${name}"); // ok - highlights ${name} (though this syntax is deprecated in PHP 8.2)
Related issue: "\$obj->name" should not highlight the ->name part.
Screenshot
The text was updated successfully, but these errors were encountered:
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: