Skip to content

Update PHPStan to 2.3 - #193

Merged
jdevalk merged 3 commits into
developfrom
filip/phpstan-2.3
Nov 17, 2026
Merged

jdevalk merged 3 commits into
developfrom
filip/phpstan-2.3

Conversation

@ilicfilip

Copy link
Copy Markdown
Contributor

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.
  • inc/progress-planner/comment-moderation.php: PHPStan 2.3 knows get_comments() with count => true returns an int, so the @phpstan-ignore-line on that comparison no longer suppresses anything and is reported as unmatched; removed.

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.
  • The changed file passes php -l and PHPCS.

🤖 Generated with Claude Code

PHPStan 2.3 knows get_comments() with count => true returns an int, so the @phpstan-ignore-line on that comparison no longer suppresses anything and is reported as unmatched; removed.

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 Playground
Test this pull request on the Playground
or download the zip

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Composer package changes
Dev Packages Operation Base Target
phpstan/phpstan Upgraded 2.1.23 2.3.0

@github-actions

Copy link
Copy Markdown

🔍 WordPress Plugin Check Report

⚠️ Status: Passed with warnings

📊 Report

🎯 Total Issues ❌ Errors ⚠️ Warnings
1 0 1

⚠️ Warnings (1)

📁 comment-hacks.php (1 warning)
📍 Line 🔖 Check 💬 Message
0 textdomain_mismatch The "Text Domain" header in the plugin file does not match the slug. Found "yoast-comment-hacks", expected "comment-hacks".

🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@jdevalk
jdevalk marked this pull request as ready for review November 17, 2026 10:55
@jdevalk
jdevalk merged commit 7bb8755 into develop Nov 17, 2026
13 checks passed
@jdevalk
jdevalk deleted the filip/phpstan-2.3 branch November 17, 2026 11:00
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