Skip to content

Commit a0630d5

Browse files
authored
Update value_resolver.rst
Replace return type from `array` to `iterable` as it is defined in `ValueResolverInterface`
1 parent 53f9d77 commit a0630d5

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
@@ -265,7 +265,7 @@ values. That's why you must always return an array, even for single values::
265265

266266
class BookingIdValueResolver implements ValueResolverInterface
267267
{
268-
public function resolve(Request $request, ArgumentMetadata $argument): array
268+
public function resolve(Request $request, ArgumentMetadata $argument): iterable
269269
{
270270
// get the argument type (e.g. BookingId)
271271
$argumentType = $argument->getType();

0 commit comments

Comments
 (0)