coding-standards icon indicating copy to clipboard operation
coding-standards copied to clipboard

Require visibility for class constants

Open mbabker opened this issue 6 years ago • 2 comments

With PHP 7.2 being required going forward, I propose all class constants are required to have a visibility declared so it is explicitly clear what constants are visible in what scopes. Obviously, most constants will have to be public for B/C.

mbabker avatar Jun 17 '19 23:06 mbabker

Makes sense to me

wilsonge avatar Jun 19 '19 18:06 wilsonge