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
}
?>
|