You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ((!$resolverinstanceof ValueResolverInterface || $resolverinstanceof TraceableValueResolver) && !$resolver->supports($request, $metadata)) {
83
-
continue;
84
-
}
85
81
if (isset($disabledResolvers[\is_int($name) ? $resolver::class : $name])) {
86
82
continue;
87
83
}
@@ -100,10 +96,6 @@ public function getArguments(Request $request, callable $controller, \Reflection
100
96
// continue to the next controller argument
101
97
continue2;
102
98
}
103
-
104
-
if (!$resolverinstanceof ValueResolverInterface) {
105
-
thrownew \InvalidArgumentException(sprintf('"%s::resolve()" must yield at least one value.', get_debug_type($resolver)));
106
-
}
107
99
}
108
100
109
101
thrownew \RuntimeException(sprintf('Controller "%s" requires that you provide a value for the "$%s" argument. Either the argument is nullable and no null value has been provided, no default value has been provided or there is a non-optional argument after this one.', $this->getPrettyName($controller), $metadata->getName()));
@@ -113,7 +105,7 @@ public function getArguments(Request $request, callable $controller, \Reflection
0 commit comments