php5.5到php5.6使用语法

时间:2016-01-22 06:21:39

标签: php laravel artisan

请参阅我之前的 php5.5 代码

上的这些代码
<?php
use \ReflectionClass;
use Illuminate\Support\Collection;
/**
* 
*/
class BaseModel extends Eloquent
{
...

在没有警告的情况下运行良好,但是在 php5.6 上运行它 给我一个警告,我的php artisan命令不喜欢它。

{"error":{"type":"ErrorException","message":"The use statement with non-compound name 'ReflectionClass' has no effect","file":"\/home\/vagrant\/myproject\/app\/models\/BaseModel.php","line":2}}

我的问题是,我是否完全删除它?,删除它解决了问题,是否有任何副作用。

提前致谢。

0 个答案:

没有答案