1
我想用分组结构是这样的:分组类使用声明
use {Auth, Facade};
或
use \{Auth, Laratrust};
但是我收到一个错误:
Parse error: syntax error, unexpected '{', expecting identifier (T_STRING) or function (T_FUNCTION) or const (T_CONST) or \\ (T_NS_SEPARATOR)
UPD:
但是,如果你使用的东西像th是: use App\{Auth, Facade}
,一切都OK。
? – Jerodev
@Jerodev php 7.1 – Src
你能发布在这里给出错误的完整文件吗? – Jerodev