Skip to content

Commit 0772e0e

Browse files
authored
Fix property hooks example (#4550)
Property hooks are incompatible with readonly properties
1 parent 5d7f95f commit 0772e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language/oop5/property-hooks.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class Example
315315
<programlisting role="php">
316316
<![CDATA[
317317
<?php
318-
readonly class Rectangle
318+
class Rectangle
319319
{
320320
// A virtual property.
321321
public int $area {

0 commit comments

Comments
 (0)