UpdateFetcher and UpdateProcessor services throw an ArgumentCountError with drupal 11.0.9:
ArgumentCountError: Too few arguments to function Drupal\update\UpdateFetcher::__construct(), 3 passed in /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 4 expected in Drupal\update\UpdateFetcher->__construct() (line 65 of /app/web/core/modules/update/src/UpdateFetcher.php)
ArgumentCountError: Too few arguments to function Drupal\update\UpdateProcessor::__construct(), 7 passed in /app/web/modules/contrib/drd/src/UpdateProcessor.php on line 44 and exactly 8 expected in Drupal\update\UpdateProcessor->__construct() (line 107 of /app/web/core/modules/update/src/UpdateProcessor.php)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3491607_drd_argument_count_errors_3.patch | 2.21 KB | adinac |
Issue fork drd-3491607
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
adinac commentedComment #3
adinac commentedComment #4
jurgenhaasThanks for your contribution.
No patches, please. Turn this into an issue fork with an MR so that tests can run. Once all tests are green, please set the status to "Needs review"
Comment #5
jurgenhaas@adinac do you want to follow-up on this?
Comment #8
atul_ghate commentedHi @jurgenhaas i have converted patch to MR please review.
Comment #10
jurgenhaasThis is looking good and tests are all green as well. Thank you @atul_ghate, I've merged that and will publish another release.
Comment #11
jurgenhaasThis code breaks on PHP 8.2 and Drupal 10.4 - the
protectedin the constructor needs to be removed.Comment #13
jurgenhaas