Skip to content

Exclude php-api-client from PHPStan analysis#11150

Closed
westonruter wants to merge 2 commits intoWordPress:trunkfrom
westonruter:update-phpstan-exclude-php-ai-client
Closed

Exclude php-api-client from PHPStan analysis#11150
westonruter wants to merge 2 commits intoWordPress:trunkfrom
westonruter:update-phpstan-exclude-php-ai-client

Conversation

@westonruter
Copy link
Member

This is a follow-up to #10990 (r61712). The library update in r61776 re-introduced the following PHPStan issues which had previously been fixed:

 ------ ---------------------------------------------------------------------------------------------- 
  Line   wp-includes/php-ai-client/src/Providers/Http/Enums/RequestAuthenticationMethod.php            
 ------ ---------------------------------------------------------------------------------------------- 
  33     No error with identifier missingType.generics is reported on line 33.                         
         at src/wp-includes/php-ai-client/src/Providers/Http/Enums/RequestAuthenticationMethod.php:33  
 ------ ---------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------- 
  Line   wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php             
 ------ ----------------------------------------------------------------------------- 
  263    No error to ignore is reported on line 263.                                  
         at src/wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:263  
 ------ ----------------------------------------------------------------------------- 

I wasn't fully aware that src/wp-includes/php-ai-client is all a third party library pulled in from another source, not just src/wp-includes/php-ai-client/third-party. So in 6aee2e5 the former path is excluded instead.

This also re-sorts the paths for third-party libraries in 56b149f.

Trac ticket: https://core.trac.wordpress.org/ticket/64591

Use of AI Tools

n/a


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@westonruter westonruter requested a review from felixarntz March 4, 2026 01:38
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props westonruter.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

Thanks @westonruter!

pento pushed a commit that referenced this pull request Mar 4, 2026
…tream.

Third-party paths are also re-sorted in the PHPStan config.

Developed in #11150

Follow up to r61776, r61712, r61699.

Props justlevine, flixos90, westonruter.
See #64591, #61175.


git-svn-id: https://develop.svn.wordpress.org/trunk@61808 602fd350-edb4-49c9-b593-d223f7449a82
@westonruter
Copy link
Member Author

Committed in r61808 (0738208)

@westonruter westonruter closed this Mar 4, 2026
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request Mar 4, 2026
…tream.

Third-party paths are also re-sorted in the PHPStan config.

Developed in WordPress/wordpress-develop#11150

Follow up to r61776, r61712, r61699.

Props justlevine, flixos90, westonruter.
See #64591, #61175.

Built from https://develop.svn.wordpress.org/trunk@61808


git-svn-id: http://core.svn.wordpress.org/trunk@61108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants