欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

FatalErrorException in Inflector.php line 55: syntax error, unexpected ':', expecting ';' or '{' in Inflector.php line 55 有大用 有大大用 有大大大用

Inflector error with php v5.6 #22979            

 Closed        
hosseinizadeh opened this issue on 1 Feb 2018 · 2 comments        
 Closed                    

Inflector error with php v5.6#22979                        

hosseinizadeh opened this issue on 1 Feb 2018 · 2 comments                        

@hosseinizadeh                        

hosseinizadeh commented on 1 Feb 2018                                    

  • Laravel Version: 5.4.36

  • PHP Version: 5.6.32

Description:

update my project and:
syntax error, unexpected ':', expecting ';' or '{' in Inflector.php (line 265) laravel

delete the composer.lock file and vendor, then run composer install.
but yet still have error

add "doctrine/inflector": "1.1.x", in require composer.json and delete the composer.lock file and vendor, then run composer install. and fix the error                                                        

#      

composer require doctrine/inflector 1.1.x    #这是我的方法,但我这个方法更安全,只安装它这个扩展包,不更新,因为更新会因为php版本等问题,会造成意想不到的后果 ,看 /node-admin/9180  就知道原因了                           

tnx


来自 https://github.com/laravel/framework/issues/22979


普通分类: