diff --git a/language/predefined/attributes/allowdynamicproperties.xml b/language/predefined/attributes/allowdynamicproperties.xml
index f5cf21bcb63a..bd9a7d16898e 100644
--- a/language/predefined/attributes/allowdynamicproperties.xml
+++ b/language/predefined/attributes/allowdynamicproperties.xml
@@ -7,10 +7,19 @@
&reftitle.intro;
-
+
This attribute is used to mark classes that allow
dynamic properties.
-
+
+
+
+ Although attributes themselves are not inherited, the effect of the
+ AllowDynamicProperties attribute is
+ inherited. Child classes of a class marked with this attribute will also
+ allow dynamic properties, even if they do not explicitly declare the
+ attribute.
+
+
@@ -33,12 +42,13 @@
&reftitle.examples;
-
+
Dynamic properties are deprecated as of PHP 8.2.0,
thus using them without marking the class with this attribute will emit
a deprecation notice.
-
-
+
+
+ AllowDynamicProperties with non-existing property
nonExistingProp = true;
Deprecated: Creation of dynamic property DefaultBehaviour::$nonExistingProp is deprecated in file on line 10
]]>
-
+
+
+ AllowDynamicProperties with non-existing property in inherited class
+
+ nonExistingProp = true;
+$o2->nonExistingProp = true;
+?>
+]]>
+
+ &example.outputs.82;
+
+
+
+
&reftitle.seealso;
- Attributes overview
+ Attributes overview