Well, actually it sucessfully analyses lots of such construts, by substituting vars, constants ant built-in functuion calls i.e. if $filename = dirname(__FILE_) . "/../stuff/abc.php" and similar.
Press Alt+Enter with caret on yellow warning marker select inspection with arrow keys. Then press Right Arrow key and choose suitable variant - i.e. suppress for statement.
Press Alt+Enter with caret on yellow warning marker select inspection with arrow keys. Then press Right Arrow key and choose suitable variant - i.e. suppress for statement.
I have been using phpStorm for a little over a year now and some how missed that feature. Excellant! Thanks Alexey :)
Well, actually it sucessfully analyses lots of such construts, by substituting vars, constants ant built-in functuion calls i.e. if $filename = dirname(__FILE_) . "/../stuff/abc.php" and similar.
Press Alt+Enter with caret on yellow warning marker select inspection with arrow keys. Then press Right Arrow key and choose suitable variant - i.e. suppress for statement.
I have been using phpStorm for a little over a year now and some how missed that feature. Excellant!
Thanks Alexey :)
Thank you! Working great.