Problem/Motivation

As discovered by mglaman/phpstan-drupal 1.2.0 (see #3383279: Bump mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass again), we are using some deprecated functionality throughout Drupal core.

This issue is for dealing with:

 ------ ---------------------------------------------------------------------------------------------------
  Line   ClientFactory.php
 ------ ---------------------------------------------------------------------------------------------------
  53     Call to deprecated function GuzzleHttp\default_user_agent():
         default_user_agent will be removed in guzzlehttp/guzzle:8.0. Use Utils::defaultUserAgent instead.
 ------ ---------------------------------------------------------------------------------------------------

in \Drupal\Core\Http\ClientFactory.

Steps to reproduce

Proposed resolution

Replace the deprecated call with the proposed one.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3385095

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Spokje created an issue. See original summary.

Spokje’s picture

Status: Active » Needs review
mondrake’s picture

Status: Needs review » Reviewed & tested by the community

New method used and no test failure.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x, thanks!

  • catch committed 5aa70a9f on 11.x
    Issue #3385095 by Spokje: Replace call to deprecated function GuzzleHttp...

catch’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.