diff --git a/composer.json b/composer.json index 73378e2c..29459b94 100644 --- a/composer.json +++ b/composer.json @@ -10,19 +10,20 @@ "joomla/application": "^4.0", "joomla/event": "^4.0", "joomla/string": "^4.0", - "symfony/console": "^v7.0.0", - "symfony/error-handler": "^7" + "symfony/console": "^7.0 || ^8.0" }, "require-dev": { "joomla/test": "^4.0", "phpunit/phpunit": "^12.5 || ^13.0", "psr/container": "^2.0", "squizlabs/php_codesniffer": "^4.0", + "symfony/error-handler": "^7.0 || ^8.0", "phpstan/phpstan": "^2.1.17", "phpstan/phpstan-deprecation-rules": "^2.0.3" }, "suggest": { - "psr/container-implementation": "To use the ContainerLoader" + "psr/container-implementation": "To use the ContainerLoader", + "symfony/error-handler": "To route uncaught exceptions to the application when the Symfony ErrorHandler is registered" }, "autoload": { "psr-4": { @@ -34,5 +35,6 @@ "Joomla\\Console\\Tests\\": "tests/" } }, - "minimum-stability": "dev" + "minimum-stability": "dev", + "prefer-stable": true } diff --git a/docs/overview.md b/docs/overview.md index 59eeb9f2..3a74d3e1 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -9,6 +9,11 @@ excellent infrastructure however its two main pieces, the base Application class the Joomla code structure and methodology. Therefore, this package provides a replacement for these core classes and aims to be able to use the Symfony component API as practical. +Since 4.1 the package works with Symfony Console 7 and 8 (Symfony 8 needs PHP 8.4). `symfony/error-handler` is no +longer installed with it: the application only checks whether Symfony's `ErrorHandler` is the registered exception +handler and, if so, routes uncaught exceptions to its own rendering through it. Require `symfony/error-handler` in your +project if you use it. + ### Console Application Unlike the Application's `AbstractCliApplication` class, this package provides a fully functional and somewhat opinionated `Application` class diff --git a/phpstan.neon b/phpstan.neon index 07d82270..13fa968d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -4,7 +4,7 @@ includes: parameters: level: 5 - phpVersion: 80100 + phpVersion: 80300 reportUnmatchedIgnoredErrors: false paths: - src