Laravel 5 - Php artisan syntax error

前端 未结 7 1670
清歌不尽
清歌不尽 2021-02-07 07:41

I am currently developing an app with Laravel 5 and suddenly the artisan stoped working!

I can\'t use a single command on it, it always return the error:



        
7条回答
  •  死守一世寂寞
    2021-02-07 08:02

    I recently ran into this same error, although the error was probably a different cause from yours. Turns out we had recently updated to PHP 7 and I hadn't upgraded yet. The issue was caused by a return type being set on a function, which wasn't supported in my local version of php. Ran an update on Homestead, which upgraded my PHP version and fixed the issue.

提交回复
热议问题