Skip to content

[4.x] Analyse with PHPStan for PHP 8.3 and prefer stable dependencies - #102

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 12, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

  • phpstan.neon set phpVersion: 80100 while composer.json requires ^8.3.0, so PHPStan analysed the code as PHP 8.1 and did not report 8.3-specific issues. It now targets 80300. The analysis stays clean (no new errors, baseline unchanged).
  • composer.json has "minimum-stability": "dev" without "prefer-stable": true. A fresh install therefore resolved phpunit, phpstan, joomla/http, joomla/uri and others to dev branches, which makes CI runs non-reproducible. prefer-stable keeps dev allowed (for unreleased framework packages) but picks stable releases where they exist.

Testing Instructions

php vendor/bin/phpstan analyse reports no errors. composer validate passes. CI installs and runs as before.

Documentation Changes Required

None.

🤖 Generated with Claude Code

phpstan.neon targeted PHP 8.1 although the package requires PHP 8.3, so
issues specific to newer PHP versions were not reported.
composer.json allowed dev dependencies without prefer-stable, so phpunit,
phpstan, joomla/http, joomla/uri and others resolved to dev branches and
CI runs were not reproducible.

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