mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
54d1080654
commit
93b9a05101
2 changed files with 14 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue