[英]NetBeans : giving syntax error in laravel 5.2
Following is the snippet of code from Kernel.php in laravel. 以下是laravel中Kernel.php的代码片段。
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
];
Netbeans says Netbeans说
Syntax error
unexpected: class
after: ::
expected: identifier
POSSIBLE Syntax Error (check preceding valid syntax error)
unexpected:
What's going on ? 这是怎么回事 ? underline on whole line is irritating me.
全线下划线让我很恼火。
ClassName::class
是一项新功能,右键单击Project Node并将php版本更改为5.5或更高版本。
Maybe You should change your project properties. 也许您应该更改项目属性。 Maybe When you created project you choose PHP version lower than 5.5.
也许当您创建项目时,您选择的PHP版本低于5.5。
Code ClassName::class;
is new feature PHP 5.5 是PHP 5.5的新功能
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.