Non-static methods being called as static
Permalink
There is one thing i cannot understand about concrete5 - why on earth are some methods (such as Job::installByPackage) NOT declared as static when they are supposed to be and are used as static ones.
This is annoying because the autocomplete and contex help in IDE's (such as NetBeans) doesn't work..
Does this dates back to PHP 4 times or is it a part of some conception i don't clearly get?
This is annoying because the autocomplete and contex help in IDE's (such as NetBeans) doesn't work..
Does this dates back to PHP 4 times or is it a part of some conception i don't clearly get?
In case anyone is interested, here are some stackoverflow questions about the optional-ness of the static keyword in function declarations:
http://stackoverflow.com/questions/3754786/calling-non-static-metho...
http://stackoverflow.com/questions/3387633/is-the-static-keyword-ne...