| Conditions | 2 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function __construct($value, string $expected, int $code = 0, Throwable $previous = null) |
||
| 21 | { |
||
| 22 | $message = sprintf( |
||
| 23 | 'Expected value of type %s; %s given.', |
||
| 24 | $expected, |
||
| 25 | (is_object($value) ? get_class($value) : gettype($value)) |
||
| 26 | ); |
||
| 27 | |||
| 28 | parent::__construct($message, $code, $previous); |
||
| 29 | } |
||
| 31 |