mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-26 20:14:46 +01:00
Check that ::class on object works
This commit is contained in:
parent
568236a305
commit
6770deda3d
@ -5,6 +5,8 @@ Constant fetches
|
||||
A;
|
||||
A::B;
|
||||
A::class;
|
||||
$a::B;
|
||||
$a::class;
|
||||
-----
|
||||
array(
|
||||
0: Stmt_Expression(
|
||||
@ -40,4 +42,24 @@ array(
|
||||
)
|
||||
)
|
||||
)
|
||||
3: Stmt_Expression(
|
||||
expr: Expr_ClassConstFetch(
|
||||
class: Expr_Variable(
|
||||
name: a
|
||||
)
|
||||
name: Identifier(
|
||||
name: B
|
||||
)
|
||||
)
|
||||
)
|
||||
4: Stmt_Expression(
|
||||
expr: Expr_ClassConstFetch(
|
||||
class: Expr_Variable(
|
||||
name: a
|
||||
)
|
||||
name: Identifier(
|
||||
name: class
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
Loading…
Reference in New Issue
Block a user