in reply to linting for undefined object methods
Do you mean making sure method exists given the code $x->method()?
How do you expect the linter to know all of the classes of which $x could be an instance and all of the namespaces whose name $x could contain.
I guess you could do an imperfect job if you knew some possible values for $x. That raises the following question:
How do you expect the linter to know any of the classes of which $x could be an instance or any of the namespaces whose name $x could contain.
Update: Now takes class methods into consideration.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: linting for undefined object methods
by aespen (Initiate) on Sep 01, 2009 at 21:32 UTC | |
by ikegami (Patriarch) on Sep 01, 2009 at 22:23 UTC | |
by aespen (Initiate) on Sep 01, 2009 at 22:53 UTC | |
by ikegami (Patriarch) on Sep 01, 2009 at 23:58 UTC | |
by aespen (Initiate) on Sep 03, 2009 at 15:45 UTC | |
| |
by LanX (Saint) on Sep 01, 2009 at 22:33 UTC |