mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-11 17:09:41 +01:00
4fea054ee0
Conflicts: lib/PhpParser/Parser/Php7.php
47 lines
946 B
Plaintext
47 lines
946 B
Plaintext
Group use can have trailing comma
|
|
-----
|
|
<?php
|
|
use A\{B,};
|
|
use function A\{b,};
|
|
-----
|
|
!!php7
|
|
array(
|
|
0: Stmt_GroupUse(
|
|
type: TYPE_UNKNOWN (0)
|
|
prefix: Name(
|
|
parts: array(
|
|
0: A
|
|
)
|
|
)
|
|
uses: array(
|
|
0: Stmt_UseUse(
|
|
type: TYPE_NORMAL (1)
|
|
name: Name(
|
|
parts: array(
|
|
0: B
|
|
)
|
|
)
|
|
alias: null
|
|
)
|
|
)
|
|
)
|
|
1: Stmt_GroupUse(
|
|
type: TYPE_FUNCTION (2)
|
|
prefix: Name(
|
|
parts: array(
|
|
0: A
|
|
)
|
|
)
|
|
uses: array(
|
|
0: Stmt_UseUse(
|
|
type: TYPE_UNKNOWN (0)
|
|
name: Name(
|
|
parts: array(
|
|
0: b
|
|
)
|
|
)
|
|
alias: null
|
|
)
|
|
)
|
|
)
|
|
) |