| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function resolve(ReflectionParameter $parameter, array $arguments, array &$result): bool |
||
| 24 | { |
||
| 25 | if (!$parameter->isVariadic()) { |
||
| 26 | $result[] = $this->value; |
||
| 27 | } else { |
||
| 28 | $argument = !is_array($this->value) ? [$this->value] : $this->value; |
||
| 29 | $result = array_merge($result, $argument); |
||
| 30 | } |
||
| 31 | |||
| 32 | return true; |
||
| 33 | } |
||
| 35 |