Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function resolve(ReflectionParameter $parameter, array $arguments, array &$result): bool |
||
32 | { |
||
33 | $typeHint = $this->reflector->getTypeHint($parameter, false); |
||
34 | if (!is_string($typeHint) || !$this->container->has($typeHint)) { |
||
35 | return false; |
||
36 | } |
||
37 | |||
38 | $value = $this->container->get($typeHint); |
||
39 | return (new VariadicParameterResolver($value))->resolve($parameter, $arguments, $result); |
||
40 | } |
||
42 |