mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-05-07 05:45:20 +02:00
parent
2b96ab8edc
commit
3e1665bbbd
@ -1,7 +1,7 @@
|
|||||||
Version 1.0.1-dev
|
Version 1.0.1-dev
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
Nothing yet.
|
* Disallow `new` expressions without a class name.
|
||||||
|
|
||||||
Version 1.0.0 (12.09.2014)
|
Version 1.0.0 (12.09.2014)
|
||||||
--------------------------
|
--------------------------
|
||||||
|
@ -705,7 +705,7 @@ class_name_or_var:
|
|||||||
;
|
;
|
||||||
|
|
||||||
object_access_for_dcnr:
|
object_access_for_dcnr:
|
||||||
| base_variable T_OBJECT_OPERATOR object_property
|
base_variable T_OBJECT_OPERATOR object_property
|
||||||
{ $$ = Expr\PropertyFetch[$1, $3]; }
|
{ $$ = Expr\PropertyFetch[$1, $3]; }
|
||||||
| object_access_for_dcnr T_OBJECT_OPERATOR object_property
|
| object_access_for_dcnr T_OBJECT_OPERATOR object_property
|
||||||
{ $$ = Expr\PropertyFetch[$1, $3]; }
|
{ $$ = Expr\PropertyFetch[$1, $3]; }
|
||||||
|
File diff suppressed because it is too large
Load Diff
6
test/code/parser/expr/newWithoutClass.test-fail
Normal file
6
test/code/parser/expr/newWithoutClass.test-fail
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
New without a class
|
||||||
|
-----
|
||||||
|
<?php
|
||||||
|
new;
|
||||||
|
-----
|
||||||
|
Syntax error, unexpected ';' on line 2
|
Loading…
x
Reference in New Issue
Block a user