Skip to content

Rename protected and private class members starting with an underscore #3004

@morozov

Description

@morozov

According to PSR-2, protected and private property and method names should not be prefixed with an underscore. Currently, we have some of them in the code base:

↪ git grep -P '(protected|private) (function |\$)_(?!_)' v2.8.0 | wc -l
284

In order to fix the coding standard violations, they should be renamed which would be backward incompatible. A major release could be used to make such a change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions