123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- Static property fetches
- -----
- <?php
- // property name variations
- A::$b;
- A::$$b;
- A::${'b'};
- // array access
- A::$b['c'];
- A::$b{'c'};
- // class name variations can be found in staticCall.test
- -----
- array(
- 0: Stmt_Expression(
- expr: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- comments: array(
- 0: // property name variations
- )
- )
- name: VarLikeIdentifier(
- name: b
- )
- comments: array(
- 0: // property name variations
- )
- )
- comments: array(
- 0: // property name variations
- )
- )
- 1: Stmt_Expression(
- expr: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Expr_Variable(
- name: b
- )
- )
- )
- 2: Stmt_Expression(
- expr: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: Scalar_String(
- value: b
- )
- )
- )
- 3: Stmt_Expression(
- expr: Expr_ArrayDimFetch(
- var: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- comments: array(
- 0: // array access
- )
- )
- name: VarLikeIdentifier(
- name: b
- )
- comments: array(
- 0: // array access
- )
- )
- dim: Scalar_String(
- value: c
- )
- comments: array(
- 0: // array access
- )
- )
- comments: array(
- 0: // array access
- )
- )
- 4: Stmt_Expression(
- expr: Expr_ArrayDimFetch(
- var: Expr_StaticPropertyFetch(
- class: Name(
- parts: array(
- 0: A
- )
- )
- name: VarLikeIdentifier(
- name: b
- )
- )
- dim: Scalar_String(
- value: c
- )
- )
- )
- 5: Stmt_Nop(
- comments: array(
- 0: // class name variations can be found in staticCall.test
- )
- )
- )
|