Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function resolve(ReflectionParameter $parameter, array $arguments, array &$resolved, array &$result): void |
||
14 | { |
||
15 | $name = $parameter->getName(); |
||
16 | if (array_key_exists($name, $resolved)) { |
||
17 | return; |
||
18 | } |
||
19 | |||
20 | if (!$parameter->isOptional() && $parameter->allowsNull()) { |
||
21 | $resolved[$name] = true; |
||
22 | $result[] = null; |
||
23 | } |
||
26 |