| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 36 | protected function autoWiringArguments(ReflectionParameter $reflector) |
|
| 36 | { |
||
| 37 | 36 | if ($this->has($reflector->getName())) { |
|
| 38 | 15 | return $this->get($reflector->getName()); |
|
| 39 | } |
||
| 40 | |||
| 41 | /** @var ReflectionNamedType|null $type */ |
||
| 42 | 24 | $type = $reflector->getType(); |
|
| 43 | |||
| 44 | 24 | if (null !== $type && !$type->isBuiltin()) { |
|
| 45 | 9 | return $this->get($type->getName()); |
|
| 46 | } |
||
| 47 | |||
| 48 | 18 | return $this->argumentWithoutType($reflector); |
|
| 49 | } |
||
| 51 |