Skip to content

Commit b34210e

Browse files
authored
property-hooks.xml Replace 'all' with 'non-static', as not all + typos (#4116)
* Update property-hooks.xml Replace 'all' with 'non-static', as not all The word `all` seems to deceive the reader a little :) How about adding some specifics about which properties are allowed to declare hooks for? * Update property-hooks.xml remove the dot cahr * Update property-hooks.xml fix typo * Update property-hooks.xml Remove extra parentheses * property-hooks.xml move the period back inside the quotation marks, * property-hooks.xml Typed and non-types Specify that hooks are available for both typed and untyped properties
1 parent c35ad60 commit b34210e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

language/oop5/property-hooks.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
</listitem>
2626
</orderedlist>
2727
<simpara>
28-
There are two hooks available on all properties: <literal>get</literal> and <literal>set</literal>.
28+
There are two hooks available on non-static properties: <literal>get</literal> and <literal>set</literal>.
2929
They allow overriding the read and write behavior of a property, respectively.
30+
Hooks are available for both typed and untyped properties.
3031
</simpara>
3132
<simpara>
3233
A property may be "backed" or "virtual".
@@ -228,7 +229,7 @@ class Example
228229
</example>
229230
<simpara>
230231
For virtual properties, if a hook is omitted then that operation does
231-
not exist and trying to use it wil produce an error.
232+
not exist and trying to use it will produce an error.
232233
Virtual properties take up no memory space in an object.
233234
Virtual properties are suited for "derived" properties,
234235
such as those that are the combination of two other properties.

0 commit comments

Comments
 (0)