+
+ 7.0.0
+
+ Defining (compatible) properties in two used traits no longer triggers an error.
+
+ 5.6.0
Added: The __debugInfo() method.
-
+ 5.5.0
Added: The ::class magic constant.
diff --git a/language/oop5/traits.xml b/language/oop5/traits.xml
index 677b8267e3..0737cd95ee 100644
--- a/language/oop5/traits.xml
+++ b/language/oop5/traits.xml
@@ -20,7 +20,6 @@
composition of behavior; that is, the application of class members without
requiring inheritance.
-
Trait example
@@ -240,6 +239,13 @@ class Aliased_Talker {
]]>
+
+
+ Prior to PHP 7.0, defining a property in a class with the same name as in a trait
+ would throw an E_STRICT if the class definition was compatible
+ (same visibility and initial value).
+
+