mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-26 20:14:46 +01:00
Looks like I forgot to git add some files...
This commit is contained in:
parent
a249c002dd
commit
75ec7a3e78
@ -1,6 +1,9 @@
|
||||
Version 0.9.4-dev
|
||||
-----------------
|
||||
|
||||
* [PHP 5.5] Add support for `ClassName::class`. This is parsed as an `Expr_ClassConstFetch` with `'class'` being the
|
||||
constant name.
|
||||
|
||||
* Syntax errors now include information on expected tokens and mimic the format of PHP's own (pre 5.4) error messages.
|
||||
Example:
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -4,6 +4,7 @@ Constant fetches
|
||||
|
||||
A;
|
||||
A::B;
|
||||
A::class;
|
||||
-----
|
||||
array(
|
||||
0: Expr_ConstFetch(
|
||||
@ -21,4 +22,12 @@ array(
|
||||
)
|
||||
name: B
|
||||
)
|
||||
2: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: class
|
||||
)
|
||||
)
|
Loading…
Reference in New Issue
Block a user