On Thu, Sep 10, 2015 at 5:12 PM, Ben Scholzen 'DASPRiD' <m...@dasprids.de> wrote: > Hi Dennis, > > thanks for your feedback, see my answers below: > >> 1. static methods: >> >> class Foo<T> { >> public static function test() { >> } >> } >> >> how can I call the method: >> a) Foo::test() >> or >> b) Foo<int>::test() >> >> in case b), would the generic methods not be a duplication? > > > Case a) is correct here. A static method is not in the context of an > instance, so it doesn't know about the class boxing by itself.
I think b would be correct. Can you explain this rationale a bit more? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php