Conditions | 3 |
Paths | 4 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
12 | 2 | public function __construct(ReflectionParameter $param, Throwable $previous = null) |
|
13 | { |
||
14 | 2 | $msg = 'Unable to resolve the parameter ' . ($param->getPosition() + 1) . ' named $' . $param->name . ($param->hasType() ? ' of type ' . $param->getType() : '') . |
|
15 | 2 | ' in ' . (null !== ($class = $param->getDeclaringClass()) ? $class->name . '::' : '') . $param->getDeclaringFunction()->name . '()'; |
|
16 | |||
17 | 2 | parent::__construct($msg, 0, $previous); |
|
18 | } |
||
19 | } |