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 |
||
39 | 63 | protected function autoWiringArguments(ReflectionParameter $reflector) |
|
40 | { |
||
41 | 63 | if (true === $this->has($reflector->getName())) { |
|
42 | 18 | return $this->get($reflector->getName()); |
|
43 | } |
||
44 | |||
45 | /** @var ReflectionNamedType|null $type */ |
||
46 | 48 | $type = $reflector->getType(); |
|
47 | |||
48 | 48 | if (null !== $type && !$type->isBuiltin()) { |
|
49 | 33 | return $this->get($type->getName()); |
|
50 | } |
||
51 | |||
52 | 18 | return $this->argumentWithoutType($reflector); |
|
53 | } |
||
55 |