Skip to content

Commit 97e30d9

Browse files
committed
AI: Fix errors for PHPStan rule level 0 after php-ai-client merge.
Developed in WordPress#10990 Follow-up to r61699, r61700. Props westonruter, SirLouen, jason_the_adams. See #64591, #61175. git-svn-id: https://develop.svn.wordpress.org/trunk@61712 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 839a088 commit 97e30d9

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/wp-includes/php-ai-client/src/Providers/Http/Enums/RequestAuthenticationMethod.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ class RequestAuthenticationMethod extends AbstractEnum
2727
* @since 0.4.0
2828
*
2929
* @return class-string<RequestAuthenticationInterface&WithArrayTransformationInterface> The implementation class.
30-
*
31-
* @phpstan-ignore missingType.generics
3230
*/
3331
public function getImplementationClass(): string
3432
{

src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ private function convertFromPsr7Response(ResponseInterface $psr7Response): Respo
260260
return new Response(
261261
$psr7Response->getStatusCode(),
262262
$psr7Response->getHeaders(),
263-
// @phpstan-ignore-line
264263
$body === '' ? null : $body
265264
);
266265
}

tests/phpstan/base.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,4 @@ parameters:
138138
- ../../src/wp-includes/SimplePie
139139
- ../../src/wp-includes/sodium_compat
140140
- ../../src/wp-includes/Text
141+
- ../../src/wp-includes/php-ai-client/third-party

0 commit comments

Comments
 (0)