diff --git a/CHANGELOG.md b/CHANGELOG.md index b141715..21b6f3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this * *Nothing* ### Removed -* *Nothing* +* Drop support for PHP 8.2 ### Fixed * *Nothing* diff --git a/composer.json b/composer.json index 0fe2011..a872a07 100644 --- a/composer.json +++ b/composer.json @@ -12,21 +12,21 @@ } ], "require": { - "php": "^8.2", + "php": "^8.3", "league/event": "^3.0", "psr/event-dispatcher": "^1.0", "psr/log": "^3.0", - "shlinkio/shlink-config": "^3.3", + "shlinkio/shlink-config": "^3.4", "shlinkio/shlink-json": "^1.2" }, "require-dev": { - "phpstan/phpstan": "^2.0", + "phpstan/phpstan": "^2.1", "phpstan/phpstan-phpunit": "^2.0", - "phpunit/phpunit": "^11.4", + "phpunit/phpunit": "^11.5", "roave/security-advisories": "dev-master", "shlinkio/php-coding-standard": "~2.4.0", "spiral/roadrunner-jobs": "^4.6", - "symfony/var-dumper": "^7.1" + "symfony/var-dumper": "^7.2" }, "suggest": { "spiral/roadrunner-jobs": "To be able to run async event dispatchers as roadrunner job tasks" diff --git a/src/RoadRunner/RoadRunnerEventDispatcherFactory.php b/src/RoadRunner/RoadRunnerEventDispatcherFactory.php index d954a18..bd4cfc4 100644 --- a/src/RoadRunner/RoadRunnerEventDispatcherFactory.php +++ b/src/RoadRunner/RoadRunnerEventDispatcherFactory.php @@ -16,7 +16,7 @@ class RoadRunnerEventDispatcherFactory { - public const ROAD_RUNNER_DISPATCHER = __NAMESPACE__ . '\RoadRunnerEventDispatcher'; + public const string ROAD_RUNNER_DISPATCHER = __NAMESPACE__ . '\RoadRunnerEventDispatcher'; public function __invoke(ContainerInterface $container): EventDispatcher { diff --git a/test/RoadRunner/RoadRunnerEventDispatcherFactoryTest.php b/test/RoadRunner/RoadRunnerEventDispatcherFactoryTest.php index 56ac55e..394f5d6 100644 --- a/test/RoadRunner/RoadRunnerEventDispatcherFactoryTest.php +++ b/test/RoadRunner/RoadRunnerEventDispatcherFactoryTest.php @@ -102,10 +102,10 @@ private function container( ]; $hasServiceReturnMap = [ [RequestIdProviderInterface::class, $hasRequestIdProvider], + [EnabledListenerCheckerInterface::class, $listenerChecker !== null], ]; if ($listenerChecker !== null) { - $hasServiceReturnMap[] = [EnabledListenerCheckerInterface::class, true]; $getServiceReturnMap[] = [EnabledListenerCheckerInterface::class, $listenerChecker]; }