$resolved = $resolver->resolve($request, $metadata);
if (!$resolved instanceof \Generator) {
- throw new \InvalidArgumentException(sprintf('%s::resolve() must yield at least one value.', get_class($resolver)));
+ throw new \InvalidArgumentException(sprintf('%s::resolve() must yield at least one value.', \get_class($resolver)));
}
foreach ($resolved as $append) {
$representative = $controller;
- if (is_array($representative)) {
- $representative = sprintf('%s::%s()', get_class($representative[0]), $representative[1]);
- } elseif (is_object($representative)) {
- $representative = get_class($representative);
+ if (\is_array($representative)) {
+ $representative = sprintf('%s::%s()', \get_class($representative[0]), $representative[1]);
+ } elseif (\is_object($representative)) {
+ $representative = \get_class($representative);
}
throw new \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 because there is a non optional argument after this one.', $representative, $metadata->getName()));