mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-07-27 17:30:29 +02:00
In most circumstances we are interested in the whole string, not the parts split by namespace separator. As names are common, this representation measurably improves memory usage and performance.
37 lines
716 B
Plaintext
37 lines
716 B
Plaintext
Dynamic class constant fetch
|
|
-----
|
|
<?php
|
|
Foo::{bar()};
|
|
$foo::{bar()};
|
|
-----
|
|
array(
|
|
0: Stmt_Expression(
|
|
expr: Expr_ClassConstFetch(
|
|
class: Name(
|
|
name: Foo
|
|
)
|
|
name: Expr_FuncCall(
|
|
name: Name(
|
|
name: bar
|
|
)
|
|
args: array(
|
|
)
|
|
)
|
|
)
|
|
)
|
|
1: Stmt_Expression(
|
|
expr: Expr_ClassConstFetch(
|
|
class: Expr_Variable(
|
|
name: foo
|
|
)
|
|
name: Expr_FuncCall(
|
|
name: Name(
|
|
name: bar
|
|
)
|
|
args: array(
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|