It will be good if there will be some auto correction of input . to -> in object methods/fields while php programming. Cause it easier to push only . but not -> (of cause -> should stay )
But . is string concatenation operator. And the __toString() method can be implement in the class. What if I wish concatenate returned from __toString() string with some string but PhpStrom will correct automatically my . to -> operator?
I think, that it can be smart autocorrection - only in that case, if there -> using instead of . .As an example of such autocorrection - Qt Creator 1.3.1 or higher - very useful thing in there, and I thought that it will great to see it in WebStorm
let's discuss it
But . is string concatenation operator. And the __toString() method can be implement in the class. What if I wish concatenate returned from __toString() string with some string but PhpStrom will correct automatically my . to -> operator?
I think, that it can be smart autocorrection - only in that case, if
there -> using instead of . .As an example of such autocorrection -
Qt Creator 1.3.1 or higher - very useful thing in there, and I thought that it will
great to see it in WebStorm
I don't see how we can reliably trigger expansion of . to -> in context of arbitrary expression, thus we won't go for this feature.
However its quite easy to bound something like Ctrl-. or Ctrl-- to macro that will insert -> for you.