php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #62537
Patch bug62537 revision 2017-02-07 23:23 UTC by mail at pmmaga dot net

Patch bug62537 for Class/Object related Bug #62537

Patch version 2017-02-07 23:23 UTC

Return to Bug #62537 | Download this patch
Patch Revisions:

Developer: mail@pmmaga.net

--- en/language/oop5/traits.xml
+++ en/language/oop5/traits.xml
@@ -436,9 +436,8 @@
    </example>
    <para>
     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
-    <constant>E_STRICT</constant> 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.
    </para>
    <example xml:id="language.oop5.traits.properties.conflicts">
     <title>Conflict Resolution</title>
@@ -452,7 +451,7 @@
 
 class PropertiesExample {
     use PropertiesTrait;
-    public $same = true; // Strict Standards
+    public $same = true; // Allowed
     public $different = true; // Fatal error
 }
 ?>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC