Closed sjparkinson closed 7 years ago
It would be nice indeed, but sgrep works mostly at a local syntactical level. To be able to resolve static calls requires more global analysis, because there could be another file b.php with class B extends A { .... self::methodOne() } that actually should also be considered a static call to A::methodOne.
I have the following situation:
I was somewhat expecting
sgrep -e 'A::methodOne()' .
to identify the call tomethodOne
in class A, but it did not.Is this perhaps something worth implementing?
sgrep version: 0.29