diff --git a/language/oop5/traits.xml b/language/oop5/traits.xml index bd0d70dea0..677b8267e3 100644 --- a/language/oop5/traits.xml +++ b/language/oop5/traits.xml @@ -436,9 +436,8 @@ $example->x; If a trait defines a property then a class can not define a property with - the same name, otherwise an error is issued. It is an - E_STRICT if the class definition is compatible (same - visibility and initial value) or fatal error otherwise. + the same name unless it is compatible (same visibility and initial value), + otherwise a fatal error is issued. Conflict Resolution @@ -452,7 +451,7 @@ trait PropertiesTrait { class PropertiesExample { use PropertiesTrait; - public $same = true; // Strict Standards + public $same = true; // Allowed public $different = true; // Fatal error } ?>