Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ class RequestAuthenticationMethod extends AbstractEnum
* @since 0.4.0
*
* @return class-string<RequestAuthenticationInterface&WithArrayTransformationInterface> The implementation class.
*
* @phpstan-ignore missingType.generics
*/
public function getImplementationClass(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ private function convertFromPsr7Response(ResponseInterface $psr7Response): Respo
return new Response(
$psr7Response->getStatusCode(),
$psr7Response->getHeaders(),
// @phpstan-ignore-line
$body === '' ? null : $body
);
}
Expand Down
1 change: 1 addition & 0 deletions tests/phpstan/base.neon
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@ parameters:
- ../../src/wp-includes/SimplePie
- ../../src/wp-includes/sodium_compat
- ../../src/wp-includes/Text
- ../../src/wp-includes/php-ai-client/third-party

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@westonruter @felixarntz should the entire php-ai-client directory be ignored by PHPStan?

I think from the perspective of wordpress-core the entire php-ai-client is external, and while I'm not sure if syncs like #11102 are manual or automatic, I'd assume we don't want to keep clobbering them back into the codebase

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justlevine wanna open a PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm opening one. There are currently 2,489 errors errors in trunk 😬

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or no, sorry, that was my stale cache apparently.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #11150

Loading