Documented changes in E_STRICT throwing as of PHP 7.0 for compatible properties in traits (thanks for mentioning this, Sherif)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342129 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Maciek Sokolewicz 2017-03-14 12:18:23 +00:00
parent 54d1080654
commit 93b9a05101
2 changed files with 14 additions and 2 deletions

View file

@ -16,13 +16,19 @@
</row>
</thead>
<tbody>
<row>
<entry>7.0.0</entry>
<entry>
Defining (compatible) properties in two used traits no longer triggers an error.
</entry>
</row>
<row>
<entry>5.6.0</entry>
<entry>
Added: The <link linkend="object.debuginfo">__debugInfo()</link> method.
</entry>
</row>
<row>
<row>
<entry>5.5.0</entry>
<entry>
Added: The <link linkend="language.oop5.basic.class.class">::class</link> magic constant.

View file

@ -20,7 +20,6 @@
composition of behavior; that is, the application of class members without
requiring inheritance.
</para>
<example xml:id="language.oop5.traits.basicexample">
<title>Trait example</title>
<programlisting role="php">
@ -240,6 +239,13 @@ class Aliased_Talker {
]]>
</programlisting>
</example>
<note>
<para>
Prior to PHP 7.0, defining a property in a class with the same name as in a trait
would throw an <constant>E_STRICT</constant> if the class definition was compatible
(same visibility and initial value).
</para>
</note>
</sect2>
<sect2 xml:id="language.oop5.traits.visibility">