From c65553a916378397b5d5db825c35b1a2d7430fb0 Mon Sep 17 00:00:00 2001 From: W0rma Date: Fri, 19 Jan 2024 08:50:14 +0100 Subject: [PATCH] Chore: Add support for symfony 7 --- composer.json | 6 +++--- .../RequestFactoryAwareEventDispatcher.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index f438a4c5..b8ed4677 100755 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "lastguest/murmurhash": "^2.1", "psr/http-message": "^1.0 | ^2.0", "php-http/discovery": "^1.14", - "symfony/event-dispatcher": "^5.0 | ^6.0" + "symfony/event-dispatcher": "^5.0 | ^6.0 | ^7.0" }, "autoload": { "psr-4": { @@ -36,9 +36,9 @@ "jetbrains/phpstorm-attributes": "^1.0", "rector/rector": "^0.14.8", "phpunit/phpunit": "^9.5", - "symfony/http-client": "^5.0 | ^6.0", + "symfony/http-client": "^5.0 | ^6.0 | ^7.0", "nyholm/psr7": "^1.0", - "symfony/cache": "^5.0 | ^6.0" + "symfony/cache": "^5.0 | ^6.0 | ^7.0" }, "autoload-dev": { "psr-4": { diff --git a/tests/TestHelpers/DependencyContainer/RequestFactoryAwareEventDispatcher.php b/tests/TestHelpers/DependencyContainer/RequestFactoryAwareEventDispatcher.php index b110fbbf..68eb06a1 100644 --- a/tests/TestHelpers/DependencyContainer/RequestFactoryAwareEventDispatcher.php +++ b/tests/TestHelpers/DependencyContainer/RequestFactoryAwareEventDispatcher.php @@ -25,19 +25,19 @@ public function setRequestFactory(RequestFactoryInterface $requestFactory): void $this->requestFactory = $requestFactory; } - public function addListener(string $eventName, callable $listener, int $priority = 0) + public function addListener(string $eventName, callable $listener, int $priority = 0): void { } - public function addSubscriber(EventSubscriberInterface $subscriber) + public function addSubscriber(EventSubscriberInterface $subscriber): void { } - public function removeListener(string $eventName, callable $listener) + public function removeListener(string $eventName, callable $listener): void { } - public function removeSubscriber(EventSubscriberInterface $subscriber) + public function removeSubscriber(EventSubscriberInterface $subscriber): void { }