Skip to content

Update PHPStan to 2.3 - #7

Merged
ilicfilip merged 1 commit into
mainfrom
filip/phpstan-2.3
Oct 7, 2026
Merged

ilicfilip merged 1 commit into
mainfrom
filip/phpstan-2.3

Conversation

@ilicfilip

Copy link
Copy Markdown
Collaborator

Updates PHPStan to 2.3.0, the release with the big performance work (PHPStan 2.3: a leap in performance).

What changes

  • composer.lock: phpstan/phpstan to 2.3.0.
  • phpstan.neon.dist: PHPStan 2.3 reports class_exists() on the WordPress AI Client SDK classes as always false, because they have no stubs. The probes run at runtime, where the classes may exist, so function.impossibleType is ignored for those two files only (src/Capture/class-chaining-transporter.php, src/Capture/class-result-capturer.php), next to the existing ignores for the same SDK.

Checked

  • PHPStan 2.3 on this repository's own config reports 0 errors, the same as before the update.
  • PHPStan was run with a cold cache before and after the update.

🤖 Generated with Claude Code

PHPStan 2.3 reports class_exists() on the WordPress AI Client SDK classes as always false, because they have no stubs. The probes run at runtime, where the classes may exist, so the check is ignored for those two files only, next to the config's existing ignores for the same SDK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Filip Ilic <ilic.filip@gmail.com>
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

🧪 Test on WordPress Playground

Open this PR in WordPress Playground →

or download the plugin zip.

Note: this plugin needs WordPress 7.0+ (the AI Client API) and a configured
AI provider to capture real usage. In Playground you'll see the dashboard, the
empty state, and the Limits UI — but no live AI requests (no provider key).

@ilicfilip
ilicfilip marked this pull request as ready for review October 7, 2026 05:50
@ilicfilip
ilicfilip merged commit e75b80a into main Oct 7, 2026
11 checks passed
@ilicfilip
ilicfilip deleted the filip/phpstan-2.3 branch October 7, 2026 05:51
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.

1 participant