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.

0

请先登录再写评论。