Skip to content

[4.x] Analyse with PHPStan for PHP 8.3 and fix the README badge - #64

Open
Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-phpstan-php83
Open

Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-phpstan-php83

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary of Changes

phpstan.neon sets phpVersion: 80100, but the package requires PHP ^8.3.0, so PHPStan analyses the code against the wrong language version. This sets it to 80300. The build badge in README.md still shows the 3.x-dev branch; it now shows 4.x-dev.

The pinned PHPStan versions in composer.json are left to #55. symfony/deprecation-contracts is not used in src/ on 4.x-dev yet, but is kept: #60 uses trigger_deprecation().

Testing Instructions

php vendor/bin/phpstan analyse reports no errors, before and after.

Documentation Changes Required

None

🤖 Generated with Claude Code

phpstan.neon still analysed for PHP 8.1 although the package requires
^8.3, and the README build badge pointed at 3.x-dev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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