| 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 |
||
| 47 | 54 | protected function autoWiringArguments(ReflectionParameter $reflector) |
|
| 48 | { |
||
| 49 | 54 | if (true === $this->has($reflector->getName())) { |
|
| 50 | 18 | return $this->get($reflector->getName()); |
|
| 51 | } |
||
| 52 | |||
| 53 | /** @var ReflectionNamedType|null $type */ |
||
| 54 | 39 | $type = $reflector->getType(); |
|
| 55 | |||
| 56 | 39 | if (null !== $type && !$type->isBuiltin()) { |
|
| 57 | 24 | return $this->get($type->getName()); |
|
| 58 | } |
||
| 59 | |||
| 60 | 15 | return $this->argumentWithoutType($reflector); |
|
| 61 | } |
||
| 63 |