-
Notifications
You must be signed in to change notification settings - Fork 819
Open
Labels
Status: VerifiedbugDocumentation contains incorrect informationDocumentation contains incorrect information
Description
From manual page: https://php.net/language.oop5.late-static-bindings
Quoting the confusing comments inside the code example #3.:
/* foo() will be copied to B, hence its scope will still be A and
* the call be successful */
I understand the code's behavior fine, but the comments confused me a lot, I'm asking like:
- Since foo() is a private method, why foo() will be copied to B?
- If foo() indeed will be copied to B, why then the scope will be A ?
It conflict with our understanding of how "inheritance" works, also the whole sentence conflict itself. The word "copied" or the whole statement need to be fixed or improved.
Metadata
Metadata
Assignees
Labels
Status: VerifiedbugDocumentation contains incorrect informationDocumentation contains incorrect information