Minor syntax coloring issue |
Site Admin
|
we're aware of this problem but it's hard to separate dirname standard function from such method call like in your example.
Indeed, the two files below are both correct: fileA: <?php $foo = $this-> /* some comment */ dirname /* some comment */ ; fileB: <?php /* some comment */ dirname /* some comment */ ('somepath'); |
||||||||||||
_________________ The PHP IDE team |
Veteran
|
It seems like the IDE could identify your second example by the lack of the -> operator. As for your first example, I don't think I've ever seen that in any code I've looked at, and certainly not in any I've written - it's a maintenance disaster waiting to happen. I'd be happy enough if the IDE just required no whitespace (or only a single space) around ->. This may not be in strict alignment with what PHP supports, but it's in alignment with how most, perhaps nearly all, folks write code. At the very least, it would reduce the coloring issue to a single edge case. And FWIW, I can't get code insight to work with a line break in there, either, so it appears you already took such a position there.
|
||||||||||||
|
Minor syntax coloring issue |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by