Skip to content

Commit

Permalink
fix: avoid unneeded use of covariance to keep compatibility with PHP …
Browse files Browse the repository at this point in the history
…< 7.4 (#5327)
  • Loading branch information
Mathieu authored Jan 12, 2023
1 parent ab6822f commit 444f339
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function supports(Request $request, ArgumentMetadata $argument): bool
return $inputClass === $class || is_subclass_of($inputClass, $class);
}

public function resolve(Request $request, ArgumentMetadata $argument): \Generator
public function resolve(Request $request, ArgumentMetadata $argument): iterable
{
yield $request->attributes->get('data');
}
Expand Down

0 comments on commit 444f339

Please sign in to comment.