You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm ... . As far as I understand the topic, inheritance is not allowed on enumerations, but static is used to refer to the class/enumeration a static method was called upon. So I was bewildered to read static as return type, because in this code it never can be anything else than Size. Though it is correct, it made me rather doubt if I understand the topic correctly. Just my 2 cents. And yes, I agree, when not using the most general static, the general self is more apropriate than the specific Size.
From manual page: https://php.net/language.enumerations.static-methods
The return type of the static method should read 'Size' not 'static'.
Cheers!
The text was updated successfully, but these errors were encountered: