Doc #72597 [Opn->Csd]: expression in 'new' operator syntax
| From: | nikic@php.net | Date: | Thu, 28 Sep 2017 15:54:37 +0000 |
| Subject: | Doc #72597 [Opn->Csd]: expression in 'new' operator syntax | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15008@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72597&edit=1
ID: 72597
Updated by: nikic@php.net
Reported by: nikola dot kovacs at gmail dot com
Summary: expression in 'new' operator syntax
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: PHP Language Specification
PHP Version: Irrelevant
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
This has been fixed by https://github.com/php/php-langspec/commit/687ecf0dbc2397b79a9b5a39be05105b9f42ac8a.
Previous Comments:
------------------------------------------------------------------------
[2016-07-14 13:03:32] nikola dot kovacs at gmail dot com
Description:
------------
In the 'new' operator syntax description
(https://github.com/php/php-langspec/blob/master/spec/10-expressions.md#the-new-operator):
object-creation-expression:
new class-type-designator
class-type-designator:
qualified-name
expression
expression links to https://github.com/php/php-langspec/blob/master/spec/10-expressions.md#general-6,
which is:
expression:
yield-expression
include-expression
include-once-expression
require-expression
require-once-expression
This is wrong. I think it should be:
class-type-designator:
qualified-name
variable-name
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72597&edit=1