We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ead32 commit 8ffe403Copy full SHA for 8ffe403
src/Standards/PSR12/Docs/Properties/ConstantVisibilityStandard.xml
@@ -0,0 +1,27 @@
1
+<documentation title="Constant Visibility">
2
+ <standard>
3
+ <![CDATA[
4
+ Visibility must be declared on all class constants if your project PHP minimum version supports constant visibilities (PHP 7.1 or later).
5
+
6
+ The term "class" refers to all classes, interfaces, enums and traits.
7
+ ]]>
8
+ </standard>
9
+ <code_comparison>
10
+ <code title="Valid: Constant visibility declared.">
11
12
+class Foo
13
+{
14
+ <em>private const</em> BAR = 'bar';
15
+}
16
17
+ </code>
18
+ <code title="Invalid: Constant visibility not declared.">
19
20
21
22
+ <em>const</em> BAR = 'bar';
23
24
25
26
+ </code_comparison>
27
+</documentation>
0 commit comments