Check that ::class on object works

This commit is contained in:
Nikita Popov 2020-02-22 20:42:11 +01:00
parent 568236a305
commit 6770deda3d

View File

@ -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
)
)
)
)