Missing definition of method getClientConfig() in HttpClientInterface

Created on 11 October 2023, about 1 year ago
Updated 13 October 2023, about 1 year ago

Problem/Motivation

While doing code analysis with drupal-check, i have noticed the following error: Call to an undefined method Drupal\http_client_manager\HttpClientInterface::getClientConfig().

Then, checking HttpClient.php shows

  /**
   * {@inheritdoc}
   */
  public function getClientConfig() {}

but in HttpClientInterface, the declaration of that function is missing.

Steps to reproduce

Check the code in both the class and the interface

Proposed resolution

Add the definition in the interface, maybe smth as:

  /**
   * Get the configuration of the client.
   *
   * @return array
   *   The configuration of the client.
   */
  public function getClientConfig();

Remaining tasks

Create the patch

Many thnks in advance

🐛 Bug report
Status

Fixed

Version

9.3

Component

Code

Created by

🇧🇪Belgium gorkagr

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

Comments & Activities

Production build 0.71.5 2024