| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class NotDetermineDefaultValueOfPhpInternalException extends NotInstantiableException |
||
| 10 | { |
||
| 11 | 1 | public function __construct(ReflectionParameter $parameter) |
|
| 12 | { |
||
| 13 | 1 | parent::__construct( |
|
| 14 | 1 | sprintf( |
|
| 15 | 'Can not determine default value of parameter "%s" when instantinate "%s" ' . |
||
| 16 | 1 | 'because it is PHP internal. Please specify argument explicitly.', |
|
| 17 | 1 | $parameter->getName(), |
|
| 18 | 1 | $this->getCallable($parameter), |
|
| 19 | ) |
||
| 20 | ); |
||
| 21 | 1 | } |
|
| 22 | |||
| 23 | 1 | private function getCallable(ReflectionParameter $parameter): string |
|
| 34 | } |
||
| 35 | } |
||
| 36 |