Skip to content

Analyse phpstan across all supported PHP versions - #66

Merged
johanwilfer merged 1 commit into
masterfrom
claude/funny-dirac-lw84u7
Oct 12, 2026
Merged

johanwilfer merged 1 commit into
masterfrom
claude/funny-dirac-lw84u7

Conversation

@johanwilfer

Copy link
Copy Markdown
Owner

Follow-up to #63. When phpVersion isn't set, PHPStan takes the PHP version from composer.json, and config.platform.php (now pinned to 8.3.0 for Dependabot) wins over require.php. So phpstan only analysed for PHP 8.3, instead of the full supported range.

This sets phpVersion to min: 80300 / max: 80599 in phpstan.neon, so the analysis covers every PHP version the library supports, whatever the platform pin says.

🤖 Generated with Claude Code

https://claude.ai/code/session_01G1B1haEbMV4nwwwdJ4yxmY


Generated by Claude Code

Without phpVersion, PHPStan takes config.platform.php from composer.json
when set, so it only analysed for the pinned version. Set the supported
range explicitly so code that needs a newer PHP than the minimum is
still reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G1B1haEbMV4nwwwdJ4yxmY
@johanwilfer
johanwilfer marked this pull request as ready for review October 12, 2026 05:43
Copilot AI balanced review requested due to automatic review settings October 12, 2026 05:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The configuration is valid and matches the repository’s documented and tested PHP support range.

0 open findings

What changed in this PR

Configures PHPStan to analyze the library across its supported PHP 8.3–8.5 range.

Changes:

  • Sets PHPStan’s minimum version to PHP 8.3.
  • Sets its maximum version to all PHP 8.5 patch releases.
File Description
phpstan.neon Adds the supported PHP version range for static analysis.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@johanwilfer
johanwilfer merged commit 8fecce6 into master Oct 12, 2026
7 checks passed
@johanwilfer
johanwilfer deleted the claude/funny-dirac-lw84u7 branch October 12, 2026 05:45
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.

3 participants