Closed MoatazAbdAlmageed closed 5 years ago
I got this error when try to run composer install
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>]...
It works after remove vendor directory and run composer require symfony/flex before composer install
composer require symfony/flex
I got this error when try to run
composer install