HttpClientManagerFactory Type Errors

Created on 5 May 2025, 13 days ago

In HttpClientManagerFactory.php, the constructor parameters are type-hinted with fully qualified class names in the docblock, but the corresponding classes are used by short name in the signature without use statements. This is throwing the following type errors:

TypeError: Drupal\http_client_manager\HttpClientManagerFactory::__construct(): Argument #2 ($dispatcher) must be of type Drupal\http_client_manager\EventDispatcherInterface, Symfony\Component\EventDispatcher\EventDispatcher given, called in /var/www/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\http_client_manager\HttpClientManagerFactory->__construct() (line 52 of /var/www/web/modules/contrib/http_client_manager/src/HttpClientManagerFactory.php).

TypeError: Drupal\http_client_manager\HttpClientManagerFactory::__construct(): Argument #3 ($requestLocation) must be of type Drupal\http_client_manager\RequestLocationPluginManager, Drupal\http_client_manager\RequestLocation\RequestLocationPluginManager given, called in /var/www/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\http_client_manager\HttpClientManagerFactory->__construct() (line 52 of /var/www/web/modules/contrib/http_client_manager/src/HttpClientManagerFactory.php).

πŸ› Bug report
Status

Active

Version

10.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States zerbash

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024