Skip to content

Improve phrasing of the comments inside the code example #3. #2932

Open
@unifreak

Description

@unifreak

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

No one assigned

    Labels

    Status: VerifiedbugDocumentation contains incorrect information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions