From ee795e634ea710d61aed6f9d0596f0b0197b66ed Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 20 Feb 2026 21:25:41 +0000 Subject: [PATCH] AI: Fix errors for PHPStan rule level 0 after php-ai-client merge. Developed in https://github.com/WordPress/wordpress-develop/pull/10990 Follow-up to r61699, r61700. Props westonruter, SirLouen, jason_the_adams. See #64591, #61175. Built from https://develop.svn.wordpress.org/trunk@61712 git-svn-id: http://core.svn.wordpress.org/trunk@61020 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../src/Providers/Http/Enums/RequestAuthenticationMethod.php | 2 -- .../php-ai-client/src/Providers/Http/HttpTransporter.php | 1 - wp-includes/version.php | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-includes/php-ai-client/src/Providers/Http/Enums/RequestAuthenticationMethod.php b/wp-includes/php-ai-client/src/Providers/Http/Enums/RequestAuthenticationMethod.php index e43eb02757..c28bd507d9 100644 --- a/wp-includes/php-ai-client/src/Providers/Http/Enums/RequestAuthenticationMethod.php +++ b/wp-includes/php-ai-client/src/Providers/Http/Enums/RequestAuthenticationMethod.php @@ -27,8 +27,6 @@ class RequestAuthenticationMethod extends AbstractEnum * @since 0.4.0 * * @return class-string The implementation class. - * - * @phpstan-ignore missingType.generics */ public function getImplementationClass(): string { diff --git a/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php b/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php index dd6cc3e9e4..f856d67d0c 100644 --- a/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php +++ b/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php @@ -260,7 +260,6 @@ class HttpTransporter implements HttpTransporterInterface return new Response( $psr7Response->getStatusCode(), $psr7Response->getHeaders(), - // @phpstan-ignore-line $body === '' ? null : $body ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3c38fd1bb7..a74c9c6656 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-beta1-61711'; +$wp_version = '7.0-beta1-61712'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.