Re:PHP 8: Before and After
by spdionis on Friday October 23, 2020 @07:32AM
(#24868357)
It's still static in the sense that the method is tied to a class, not to an object instance. Does that mean it's "less" static? I wouldn't say so.
[ Parent
| on HN ]
Re:PHP 8: Before and After
by quietbritishjim on Friday October 23, 2020 @08:51AM
(#24868908)
Well then I guess we'll have to agree to disagree :-)
It's less static than a method dependent on the object instance, but more static than a method that doesn't even depend on the class. If I've understood correctly (which I quite possibly haven't, in fairness), these are analogous to Python's static methods, class methods and regular methods, and its static methods really are the "most" static.