Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/270.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 编写器更新引发错误_Php_Laravel_Composer Php - Fatal编程技术网

Php 编写器更新引发错误

Php 编写器更新引发错误,php,laravel,composer-php,Php,Laravel,Composer Php,你好 当我尝试使用composer update更新我的项目时,我收到以下错误: > php artisan clear-compiled [Symfony\Component\Debug\Exception\FatalErrorException] parse error Script php artisan clear-compiled handling the pre-up

你好

当我尝试使用
composer update
更新我的项目时,我收到以下错误:

> php artisan clear-compiled


  [Symfony\Component\Debug\Exception\FatalErrorException]  
  parse error                                              


Script php artisan clear-compiled handling the pre-update-cmd event returned with an error


  [RuntimeException]  
  Error Output:       
当我尝试这个:

composer update --no-scripts


Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
它成功了吗

这里可能出了什么问题

--编辑--

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
install[--首选源代码][--首选区][--干运行][--开发][--无开发][--无自定义安装程序][--无自动加载程序][--无脚本][--无进展]-[v | vv | vvv |--verbose][-[o |--优化自动加载]-[a |--类映射权威][--忽略平台需求][--[]。。。

将php artisan clear从composer.json文件中的“pre-update cmd”转换为“post-update cmd”

"post-update-cmd": [
  "php artisan clear-compiled",
  "php artisan optimize"
]

什么是错误输出?[Symfony\Component\Debug\Exception\FatalErrorException]解析错误脚本php artisan clear compiled处理随错误返回的预更新cmd事件[RuntimeException]错误输出:错误输出后的任何内容:??另外,请查看我的编辑版本。我使用Laravel 5.2这个错误是因为作曲家的工作方式发生了变化。更多细节