[Bug]: PHP 8.6: bundled guzzlehttp/promises loads class `Is` → "Using "is" as a class name is deprecated"

Open Beginner friendly
#23,747 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

@nadeem-khan is already working on this.

Since Nov 1, 2026.

  • #23758 by @nadeem-khan — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
73/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
php
Domain
backend

Research direction

Start by checking composer.json and composer.lock for the bundled guzzlehttp/promises version, then find the vendor prefixing or rebuild instructions for vendor_prefixed. Update the dependency to a compatible release and rebuild the bundled files. Done means the reproduction request returns 200 without the PHP 8.6 deprecation from Is.php.

Written by the indexing model from the issue text.

Description

bug patch welcome php 8.6
Prerequisites
  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened

On PHP 8.6.0RC4 (PHP 8.6.0 is due 19 November 2026), the first request made through Yoast's bundled Guzzle client loads vendor_prefixed/guzzlehttp/promises/src/Is.php, and PHP logs:

Deprecated: Using "is" as a class name is deprecated since 8.6 in .../wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/promises/src/Is.php on line 6

guzzlehttp/promises 2.5.x calls Is::pending() / Is::settled() from its own Promise, FulfilledPromise, RejectedPromise, EachPromise and Utils classes, so any request through the client loads the class. composer.lock on trunk pins guzzlehttp/promises 2.5.1.

guzzlehttp/promises 2.6.0 (18 Oct 2026) adds State as the replacement, deprecates Is, and no longer calls Is itself, so Is.php is never loaded. Its requirements are the same as 2.5.x (php ^7.2.5 || ^8.0, symfony/deprecation-contracts ^2.5 || ^3.0). Changelog: https://github.com/guzzle/promises/blob/2.6.0/CHANGELOG.md

Step-by-step reproduction instructions
  1. Run WordPress 7.1.1 on PHP 8.6.0RC4 with Yoast SEO 28.8 active.
  2. Save this as repro.php and run wp eval-file repro.php (no network: the handler answers 200 itself):
<?php
$client = new \YoastSEO_Vendor\GuzzleHttp\Client( [
	'handler' => \YoastSEO_Vendor\GuzzleHttp\HandlerStack::create( function () {
		return new \YoastSEO_Vendor\GuzzleHttp\Promise\FulfilledPromise( new \YoastSEO_Vendor\GuzzleHttp\Psr7\Response( 200 ) );
	} ),
] );
echo $client->request( 'GET', 'https://example.test/' )->getStatusCode(), "\n";
  1. See the deprecation above, then 200.
Expected results
  1. No PHP 8.6 deprecation notice from the bundled libraries.
Actual results
  1. Deprecated: Using "is" as a class name is deprecated since 8.6 from vendor_prefixed/guzzlehttp/promises/src/Is.php line 6, once per PHP process that sends a request through the bundled Guzzle client.
Screenshots, screen recording, code snippet

Suggested fix: composer update guzzlehttp/promises to ^2.6 and rebuild vendor_prefixed. Nothing breaks today; it is a deprecation notice in the log (and on screen where errors are displayed).

Found while running popular plugins on PHP 8.6.0RC4. This report was drafted with help from Claude (Anthropic); the reproduction above was run on PHP 8.6.0RC4 before filing.


Which editor is affected (or editors)
  • Block Editor
  • Gutenberg Editor
  • Elementor Editor
  • Classic Editor
  • Other (please specify in additional info)
Which browser is affected (or browsers)
  • Chrome
  • Firefox
  • Safari
  • Other (please specify in additional info)
Device you are using

Desktop (command line)

Operating system

Windows 11

PHP version

8.6.0RC4

WordPress version

7.1.1

WordPress Theme

Twenty Twenty-Five 1.5

Yoast SEO version

28.8

Gutenberg plugin version (if relevant)

No response

Elementor plugin version (if relevant)

No response

Classic Editor plugin version (if relevant)

No response

Relevant plugins in case of a bug

None (Yoast SEO alone)

Dominant language
JavaScript
Stars
2k
Forks
988
Avg merge
3d 13h
Merged PRs (30d)
66

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Yoast/wordpress-seo

All issues in Yoast/wordpress-seo

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.