Replace call to deprecated function GuzzleHttp\default_user_agent()

Created on 4 September 2023, over 1 year ago
Updated 8 September 2023, over 1 year ago

Problem/Motivation

As discovered by mglaman/phpstan-drupal 1.2.0 (see 📌 Bump mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass again Fixed ), 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

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Base 

Last updated about 2 hours ago

Created by

🇳🇱Netherlands spokje

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

Comments & Activities

Production build 0.71.5 2024