svn: /phpdoc/en/trunk/ appendices/migration70/new-features.xml language/namespaces.xml
| From: | Adam Harvey | Date: | Mon, 21 Sep 2015 12:16:34 +0000 |
| Subject: | svn: /phpdoc/en/trunk/ appendices/migration70/new-features.xml language/namespaces.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13742@lists.php.net to get a copy of this message | ||
aharvey Mon, 21 Sep 2015 12:16:34 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337863
Log:
Tinker with group use wording.
Changed paths:
U phpdoc/en/trunk/appendices/migration70/new-features.xml
U phpdoc/en/trunk/language/namespaces.xml
Modified: phpdoc/en/trunk/appendices/migration70/new-features.xml
===================================================================
--- phpdoc/en/trunk/appendices/migration70/new-features.xml 2015-09-21 12:16:28 UTC (rev 337862)
+++ phpdoc/en/trunk/appendices/migration70/new-features.xml 2015-09-21 12:16:34 UTC (rev 337863)
@@ -426,20 +426,17 @@
</sect2>
<sect2 xml:id="migration70.new-features.group-use-declarations">
- <title>Group <literal>use</literal> Declarations</title>
+ <title>Group <literal>use</literal> declarations</title>
<para>
- This gives the ability to group multiple <literal>use</literal> declarations
- according to the parent namespace. This seeks to remove code verbosity when
- importing multiple classes, functions, or constants that come under the same
- namespace.
+ Classes, functions and constants being imported from the same &namespace;
+ can now be grouped together in a single &use.namespace; statement.
</para>
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
-
// Pre PHP 7 code
use some\namespace\ClassA;
use some\namespace\ClassB;
@@ -457,10 +454,12 @@
use some\namespace\{ClassA, ClassB, ClassC as C};
use function some\namespace\{fn_a, fn_b, fn_c};
use const some\namespace\{ConstA, ConstB, ConstC};
+?>
]]>
</programlisting>
</informalexample>
</sect2>
+
<sect2 xml:id="migration70.new-features.generator-return-expressions">
<title>Generator Return Expressions</title>
Modified: phpdoc/en/trunk/language/namespaces.xml
===================================================================
--- phpdoc/en/trunk/language/namespaces.xml 2015-09-21 12:16:28 UTC (rev 337862)
+++ phpdoc/en/trunk/language/namespaces.xml 2015-09-21 12:16:34 UTC (rev 337863)
@@ -762,12 +762,11 @@
</note>
</sect2>
<sect2 xml:id="language.namespaces.importing.group">
- <title>Group <literal>use</literal> Declarations</title>
+ <title>Group <literal>use</literal> declarations</title>
<para>
- This gives the ability to group multiple <literal>use</literal> declarations
- according to the parent namespace. This seeks to remove code verbosity when
- importing multiple classes, functions, or constants that come under the same
- namespace.
+ From PHP 7.0 onwards, classes, functions and constants being imported from
+ the same &namespace; can be grouped together in a single &use.namespace;
+ statement.
</para>
<informalexample>
<programlisting role="php">