Loading composer repositories with package information Running composer update to apply merge settingsĭrupalProject\composer\ScriptHandler::checkComposerVersion PHP Fatal error: Declaration of Composer\DependencyResolver\Rule2Literals::getLiterals() must be compatible with Composer\DependencyResolver\Rule::getLiterals(): array in /cms/vendor/composer/composer/src/Composer/DependencyResolver/Rule2Literals.php on line 48įatal error: Declaration of Composer\DependencyResolver\Rule2Literals::getLiterals() must be compatible with Composer\DependencyResolver\Rule::getLiterals(): array in /cms/vendor/composer/composer/src/Composer/DependencyResolver/Rule2Literals.php on line 48Ĭomposer version is 2.2.12, Now got this error Rm -rf vendor // remove vendor to simulate server I tried same scenario on local and able to reproduce the error. I troubleshooted and found the reason that vendor folder doesn't exists on server, composer install download all plugins from lock file and fails after line Updating dependencies. However when I upload code on eks server and build process start, composer install fails. After that when I run composer install on my local it works fine as well. Composer update works fine at my local instance. When I do composer update it upgrade/downgrade few plugins due to php version check, it also updated composer api version to 2.3.0. I want to update to php 8, initially i am trying to do at 8.0 instead of 8.1. I have a drupal 9.2.18 site working with php 7.4
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |