This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/nikic/php-parser/test/code/parser/stmt/const.test
2018-11-23 12:29:20 +00:00

48 lines
1 KiB
Plaintext

Global constants
-----
<?php
const A = 0, B = 1.0, C = 'A', D = E;
-----
array(
0: Stmt_Const(
consts: array(
0: Const(
name: Identifier(
name: A
)
value: Scalar_LNumber(
value: 0
)
)
1: Const(
name: Identifier(
name: B
)
value: Scalar_DNumber(
value: 1
)
)
2: Const(
name: Identifier(
name: C
)
value: Scalar_String(
value: A
)
)
3: Const(
name: Identifier(
name: D
)
value: Expr_ConstFetch(
name: Name(
parts: array(
0: E
)
)
)
)
)
)
)