更新时间:2023-11-17 22:55:40
您的问题是您的PHP版本,我相信您可能正在使用PHP 5.5.
Your problem is your version of PHP which I believe you may be using PHP 5.5.
Laravel 5.3使用splat运算符,该运算符仅在PHP 5.6版中可用
Laravel 5.3 uses the splat operator which is only available in PHP version 5.6
您所指的行是: https://github.com/laravel/framework/blob/5.3/src/Illuminate/Foundation/helpers.php#L475
此处在5.6中概述了哪些内容: http://php.net/manual/en/migration56.new-features.php
Which is outlined as part of 5.6 here: http://php.net/manual/en/migration56.new-features.php
简而言之,您要么需要升级PHP版本,要么移回Lavavel 5.1,我相信它仍然支持PHP 5.5
Simply put, you either need to upgrade your version of PHP or move back to Lavavel 5.1 which I believe still supports PHP 5.5
Laravel 5.1要求: https://laravel.com/docs/5.1/installation ( PHP> = 5.5.9)
Laravel 5.1 Requirements: https://laravel.com/docs/5.1/installation (PHP >= 5.5.9)
Laravel 5.3要求: https://laravel.com/docs/5.3/installation ( PHP> = 5.6.4)
Laravel 5.3 Requirements: https://laravel.com/docs/5.3/installation (PHP >= 5.6.4)