Skip to content

[4.x] Analyse with PHPStan for PHP 8.3 - #98

Merged
Hackwar merged 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-phpstan-php83
Nov 19, 2026
Merged

Hackwar merged 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-phpstan-php83

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 12, 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 and ignores 8.3-only behaviour and deprecations. This sets it to 80300. The analysis level (5) and the baseline are unchanged.

The other half of the same review point, converting the remaining doc-comment test metadata (@covers, @testdox, …) to PHPUnit attributes, is already done by #78 and is not repeated here.

Testing Instructions

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

Documentation Changes Required

None

🤖 Generated with Claude Code

phpstan.neon set phpVersion to 80100, but the package requires PHP ^8.3.0,
so PHPStan analysed the code against the wrong language version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Hackwar
Hackwar merged commit adf8152 into joomla-framework:4.x-dev Nov 19, 2026
7 checks passed
@Hackwar
Hackwar deleted the 4.x-phpstan-php83 branch November 19, 2026 22:02
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