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 10cfe8b commit bda37a3Copy full SHA for bda37a3
language/oop5/visibility.xml
@@ -164,6 +164,13 @@ $b->pubYear = 2023; // Fatal Error
164
</simpara>
165
</listitem>
166
</itemizedlist>
167
+ <note>
168
+ <simpara>
169
+ Spaces are not allowed in the set-visibility declaration.
170
+ <literal>private(set)</literal> is correct.
171
+ <literal>private( set )</literal> is not correct and will result in a parse error.
172
+ </simpara>
173
+ </note>
174
<simpara>
175
When a class extends another, the child class may redefine
176
any property that is not <literal>final</literal>. When doing so,
0 commit comments