Skip to content

Commit

Permalink
sf6 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
max107 authored Feb 1, 2022
1 parent 0b08058 commit 844a380
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Resolver/RequestObjectResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 844a380

Please sign in to comment.