Skip to content

Commit d6d5f07

Browse files
authored
ValueResolver: revert resolve return type to array
The `array` return type is on purpose. See #17362 (comment)
1 parent 9705835 commit d6d5f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/value_resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ values. That's why you must always return an array, even for single values:
219219
220220
class BookingIdValueResolver implements ValueResolverInterface
221221
{
222-
public function resolve(Request $request, ArgumentMetadata $argument): iterable
222+
public function resolve(Request $request, ArgumentMetadata $argument): array
223223
{
224224
// get the argument type (e.g. BookingId)
225225
$argumentType = $argument->getType();

0 commit comments

Comments
 (0)