diff --git a/language/oop5/cloning.xml b/language/oop5/cloning.xml index 91e31b4b1551..fde59faeb549 100644 --- a/language/oop5/cloning.xml +++ b/language/oop5/cloning.xml @@ -168,10 +168,11 @@ echo (clone $dateTime)->format('Y'); The overrides are applied after __clone() has run, and they honour the - visibility of the properties: a - readonly - property can only be overridden from a scope that is allowed to write it, - which makes the function suited to methods returning a modified copy. + visibility of all properties. + Readonly + properties can be updated on the copy even if they were already set on the + original object, which makes the function suited to methods returning a + modified copy.