svn: /phpdoc/en/trunk/language/ generators.xml

From: Date: Sun, 09 Aug 2015 01:16:32 +0000
Subject: svn: /phpdoc/en/trunk/language/ generators.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13543@lists.php.net to get a copy of this message
aharvey Sun, 09 Aug 2015 01:16:32 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337360 Log: Note yield changes in PHP 7. Changed paths: U phpdoc/en/trunk/language/generators.xml Modified: phpdoc/en/trunk/language/generators.xml =================================================================== --- phpdoc/en/trunk/language/generators.xml 2015-08-09 01:16:28 UTC (rev 337359) +++ phpdoc/en/trunk/language/generators.xml 2015-08-09 01:16:32 UTC (rev 337360) @@ -177,7 +177,7 @@ <para> If you use yield in an expression context (for example, on the right hand side of an assignment), you must surround the yield statement with - parentheses. For example, this is valid: + parentheses in PHP 5. For example, this is valid: </para> <informalexample> @@ -189,7 +189,7 @@ </informalexample> <para> - But this is not, and will result in a parse error: + But this is not, and will result in a parse error in PHP 5: </para> <informalexample> @@ -201,6 +201,10 @@ </informalexample> <para> + The parenthetical restrictions do not apply in PHP 7. + </para> + + <para> This syntax may be used in conjunction with the <methodname>Generator::send</methodname> method. </para>

« previous php.doc.cvs (#13543) next »