From 844a380ca93f61efe8df3555a6d4513879169472 Mon Sep 17 00:00:00 2001 From: Maxim <862272+max107@users.noreply.github.com> Date: Tue, 1 Feb 2022 14:51:15 +0300 Subject: [PATCH] sf6 (#7) --- composer.json | 4 ++-- src/Resolver/RequestObjectResolver.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 77f7d50..13afc20 100644 --- a/composer.json +++ b/composer.json @@ -21,8 +21,8 @@ }, "require": { "php": "^7.3|~8.0.0|^8.1", - "symfony/dependency-injection": "^4.1|^5.0", - "symfony/http-kernel": "^4.1|^5.1", + "symfony/dependency-injection": "^4.1|^5.0|^6.0", + "symfony/http-kernel": "^4.1|^5.1|^6.0", "ext-json": "*", "spatie/data-transfer-object": "^1.13|^2.5" }, diff --git a/src/Resolver/RequestObjectResolver.php b/src/Resolver/RequestObjectResolver.php index 9314184..6546bca 100644 --- a/src/Resolver/RequestObjectResolver.php +++ b/src/Resolver/RequestObjectResolver.php @@ -21,7 +21,7 @@ public function __construct(ObjectFactoryInterface $objectFactory) $this->objectFactory = $objectFactory; } - public function supports(Request $request, ArgumentMetadata $argument) + public function supports(Request $request, ArgumentMetadata $argument): bool { if ($argument->getType() === null) { return false; @@ -34,7 +34,7 @@ public function supports(Request $request, ArgumentMetadata $argument) return true; } - public function resolve(Request $request, ArgumentMetadata $argument) + public function resolve(Request $request, ArgumentMetadata $argument): iterable { if (!$this->supports($request, $argument)) { yield null;