Constant Visibility

Visibility must be declared on all class constants if your project PHP minimum version supports constant visibilities (PHP 7.1 or later).

The term "class" refers to all classes, interfaces, enums and traits.

Valid: Constant visibility declared.

class Foo { <em>private const</em> BAR = 'bar'; }

Invalid: Constant visibility not declared.

class Foo { <em>const</em> BAR = 'bar'; }