1Invalid group use syntax 2----- 3<?php 4// Missing semicolon 5use Foo\{Bar} 6use Bar\{Foo}; 7----- 8Syntax error, unexpected T_USE, expecting ';' from 4:1 to 4:3 9array( 10 0: Stmt_GroupUse( 11 type: TYPE_UNKNOWN (0) 12 prefix: Name( 13 name: Foo 14 ) 15 uses: array( 16 0: UseItem( 17 type: TYPE_NORMAL (1) 18 name: Name( 19 name: Bar 20 ) 21 alias: null 22 ) 23 ) 24 comments: array( 25 0: // Missing semicolon 26 ) 27 ) 28 1: Stmt_GroupUse( 29 type: TYPE_UNKNOWN (0) 30 prefix: Name( 31 name: Bar 32 ) 33 uses: array( 34 0: UseItem( 35 type: TYPE_NORMAL (1) 36 name: Name( 37 name: Foo 38 ) 39 alias: null 40 ) 41 ) 42 ) 43) 44----- 45<?php 46// Missing NS separator 47use Foo {Bar, Baz}; 48----- 49Syntax error, unexpected '{', expecting ';' from 3:9 to 3:9 50array( 51 0: Stmt_Use( 52 type: TYPE_NORMAL (1) 53 uses: array( 54 0: UseItem( 55 type: TYPE_UNKNOWN (0) 56 name: Name( 57 name: Foo 58 ) 59 alias: null 60 ) 61 ) 62 comments: array( 63 0: // Missing NS separator 64 ) 65 ) 66 1: Stmt_Block( 67 stmts: array( 68 0: Stmt_Expression( 69 expr: Expr_ConstFetch( 70 name: Name( 71 name: Bar 72 ) 73 ) 74 ) 75 1: Stmt_Expression( 76 expr: Expr_ConstFetch( 77 name: Name( 78 name: Baz 79 ) 80 ) 81 ) 82 ) 83 ) 84) 85----- 86<?php 87// Extra NS separator 88use Foo\{\Bar}; 89----- 90Syntax error, unexpected T_NAME_FULLY_QUALIFIED, expecting T_STRING or T_FUNCTION or T_CONST or T_NAME_QUALIFIED from 3:10 to 3:13 91array( 92 0: Stmt_Expression( 93 expr: Expr_ConstFetch( 94 name: Name_FullyQualified( 95 name: Bar 96 ) 97 ) 98 ) 99) 100