Skip to content

Commit

Permalink
Drop old versions of PHP and Symfony (#1787)
Browse files Browse the repository at this point in the history
* Drop old versions

* Rector

* Cs
  • Loading branch information
VincentLanglet authored Dec 7, 2024
1 parent e113012 commit 143f552
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 29 deletions.
50 changes: 25 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,36 @@
],
"homepage": "https://docs.sonata-project.org/projects/SonataPageBundle",
"require": {
"php": "^8.0",
"php": "^8.1",
"cocur/slugify": "^4.0",
"doctrine/doctrine-bundle": "^2.7",
"doctrine/persistence": "^3.0.2",
"sonata-project/admin-bundle": "^4.28",
"sonata-project/admin-bundle": "^4.34",
"sonata-project/block-bundle": "^4.18 || ^5.0",
"sonata-project/doctrine-extensions": "^1.18 || ^2.1",
"sonata-project/doctrine-orm-admin-bundle": "^4.0",
"sonata-project/form-extensions": "^1.20 || ^2.0",
"sonata-project/seo-bundle": "^3.4",
"sonata-project/twig-extensions": "^1.3 || ^2.0",
"symfony-cmf/routing-bundle": "^2.1 || ^3.0",
"symfony/config": "^5.4 || ^6.2 || ^7.0",
"symfony/console": "^5.4 || ^6.2 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.2 || ^7.0",
"symfony/form": "^5.4 || ^6.2 || ^7.0",
"symfony/framework-bundle": "^5.4 || ^6.2 || ^7.0",
"symfony/http-foundation": "^5.4 || ^6.2 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.2 || ^7.0",
"symfony/intl": "^5.4 || ^6.2 || ^7.0",
"symfony/options-resolver": "^5.4 || ^6.2 || ^7.0",
"symfony/process": "^5.4 || ^6.2 || ^7.0",
"symfony/property-access": "^5.4 || ^6.2 || ^7.0",
"symfony/property-info": "^5.4 || ^6.2 || ^7.0",
"symfony/routing": "^5.4 || ^6.2 || ^7.0",
"symfony/runtime": "^5.4 || ^6.2 || ^7.0",
"symfony/security-core": "^5.4 || ^6.2 || ^7.0",
"symfony/security-http": "^5.4 || ^6.2 || ^7.0",
"symfony/serializer": "^5.4.24 || ^6.2.11 || ^7.0",
"symfony/validator": "^5.4 || ^6.2 || ^7.0",
"symfony/config": "^6.4 || ^7.1",
"symfony/console": "^6.4 || ^7.1",
"symfony/dependency-injection": "^6.4 || ^7.1",
"symfony/form": "^6.4 || ^7.1",
"symfony/framework-bundle": "^6.4 || ^7.1",
"symfony/http-foundation": "^6.4 || ^7.1",
"symfony/http-kernel": "^6.4 || ^7.1",
"symfony/intl": "^6.4 || ^7.1",
"symfony/options-resolver": "^6.4 || ^7.1",
"symfony/process": "^6.4 || ^7.1",
"symfony/property-access": "^6.4 || ^7.1",
"symfony/property-info": "^6.4 || ^7.1",
"symfony/routing": "^6.4 || ^7.1",
"symfony/runtime": "^6.4 || ^7.1",
"symfony/security-core": "^6.4 || ^7.1",
"symfony/security-http": "^6.4 || ^7.1",
"symfony/serializer": "^6.4 || ^7.1",
"symfony/validator": "^6.4 || ^7.1",
"twig/string-extra": "^3.0",
"twig/twig": "^3.0"
},
Expand All @@ -69,12 +69,12 @@
"psalm/plugin-phpunit": "^0.19",
"psalm/plugin-symfony": "^5.0",
"rector/rector": "^1.1",
"symfony/browser-kit": "^5.4 || ^6.2 || ^7.0",
"symfony/css-selector": "^5.4 || ^6.2 || ^7.0",
"symfony/filesystem": "^5.4 || ^6.2 || ^7.0",
"symfony/browser-kit": "^6.4 || ^7.1",
"symfony/css-selector": "^6.4 || ^7.1",
"symfony/filesystem": "^6.4 || ^7.1",
"symfony/panther": "^2.0.1",
"symfony/phpunit-bridge": "^7.0",
"symfony/yaml": "^5.4 || ^6.2 || ^7.0",
"symfony/phpunit-bridge": "^7.1",
"symfony/yaml": "^6.4 || ^7.1",
"vimeo/psalm": "^5.0"
},
"conflict": {
Expand Down
5 changes: 1 addition & 4 deletions src/Listener/ExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
*/
final class ExceptionListener
{
private LoggerInterface $logger;

/**
* @param array<int, string> $httpErrorCodes An array of http error code routes
*/
Expand All @@ -45,10 +43,9 @@ public function __construct(
private PageServiceManagerInterface $pageServiceManager,
private DecoratorStrategyInterface $decoratorStrategy,
private array $httpErrorCodes,
?LoggerInterface $logger = null,
private LoggerInterface $logger = new NullLogger(),
private bool $status = false,
) {
$this->logger = $logger ?? new NullLogger();
}

/**
Expand Down

0 comments on commit 143f552

Please sign in to comment.