Skip to content

Commit bda37a3

Browse files
authored
Clarify spacing in aviz (or lack thereof). (#4148)
1 parent 10cfe8b commit bda37a3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

language/oop5/visibility.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ $b->pubYear = 2023; // Fatal Error
164164
</simpara>
165165
</listitem>
166166
</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>
167174
<simpara>
168175
When a class extends another, the child class may redefine
169176
any property that is not <literal>final</literal>. When doing so,

0 commit comments

Comments
 (0)