Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
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:
- 3385095-replace-call-to changes, plain diff MR !4702
Comments
Comment #3
SpokjeComment #4
mondrakeNew method used and no test failure.
Comment #5
catchCommitted/pushed to 11.x, thanks!
Comment #8
catch