Feature Request: Find usage of __toString()

Currently PHPStorm will not find instances where class objects are used as a string, i.e. `echo $this;` or `$foo = new Foo(); echo $foo;`.

 

I suggest an inspection on __toString() which would find instances where a class object is used as (cast to) a string.

2 comments
Comment actions Permalink

Feel free to submit this as a feature request at our tracker

0

Please sign in to leave a comment.