bradtraversy / symphart

Simple article CRUD app built with Symfony 4
59 stars 63 forks source link

composer install error #3

Closed MoatazAbdAlmageed closed 5 years ago

MoatazAbdAlmageed commented 5 years ago

I got this error when try to run composer install

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 51 installs, 0 updates, 0 removals
  - Installing symfony/flex (v1.0.71): Loading from cache
Plugin installation failed, rolling back
  - Removing symfony/flex (v1.0.71)

  [ErrorException]                                                             
  Declaration of Symfony\Flex\ParallelDownloader::getRemoteContents($originUr  
  l, $fileUrl, $context) should be compatible with Composer\Util\RemoteFilesy  
  stem::getRemoteContents($originUrl, $fileUrl, $context, ?array &$responseHe  
  aders = NULL)                                                                

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
MoatazAbdAlmageed commented 5 years ago

It works after remove vendor directory and run composer require symfony/flex before composer install