Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function __construct(string $name, $value, string $expectedType, Throwable $previous = null) |
||
22 | { |
||
23 | $this->name = $name; |
||
24 | $this->value = $value; |
||
25 | $this->expectedType = $expectedType; |
||
26 | $actualType = gettype($this->value); |
||
27 | parent::__construct( |
||
28 | "Node attribute '{$this->name}' has invalid type: {$actualType} instead of expected {$this->expectedType}", |
||
29 | 0, |
||
30 | $previous |
||
31 | ); |
||
34 |