Skip to content

[4.x] Allow Symfony 8 and make symfony/error-handler optional - #39

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

Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-symfony-8

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

Dependency and tooling updates:

  • Symfony 8: symfony/console was constrained to ^v7.0.0, so applications using this package could not move to Symfony 8 components. The constraint is now ^7.0 || ^8.0. Symfony 8 requires PHP 8.4, so on PHP 8.3 Composer keeps resolving 7.x.
  • symfony/error-handler optional: it was a hard dependency only for the instanceof ErrorHandler check in Application::execute(), which is safe when the class does not exist. It moves to require-dev (PHPStan needs it) and suggest. Projects that use Symfony's ErrorHandler themselves and only got it through this package need to require it directly — the docs say so.
  • prefer-stable: true next to minimum-stability: dev, so dev versions are only picked where nothing stable fits.
  • PHPStan phpVersion: 80300 instead of 80100; the package requires PHP 8.3.

Testing Instructions

  • With PHP 8.4 and this composer.json, composer update installs symfony/console 8.1.11 and symfony/error-handler 8.1.10; the unchanged test suite passes (45 tests) and PHPStan reports no errors.
  • With PHP 8.3 nothing changes: Symfony 7.4, tests, phpcs and PHPStan (now for 8.3) are clean. CI's lowest-dependencies job covers ^7.0.

Documentation Changes Required

docs/overview.md: a paragraph on Symfony 7/8 support and the now optional symfony/error-handler.

🤖 Generated with Claude Code

symfony/console was limited to 7.x, so applications using this package
could not move to Symfony 8 components. The test suite and PHPStan pass
unchanged with symfony/console 8.1 on PHP 8.4, so allow ^7.0 || ^8.0.

symfony/error-handler was a hard dependency only for an instanceof
check in Application::execute(), which is safe when the class is
missing. Move it to require-dev and suggest.

Also add prefer-stable next to minimum-stability dev, and let PHPStan
analyse for PHP 8.3, the minimum version the package requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Hackwar

Hackwar commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Approved.

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.

1 participant