Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ParseError | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Html\Tokenizer; |
| 6 | |
| 7 | /** |
| 8 | * A tokenizer-level parse error per WHATWG §13.2.5. WHATWG mandates that |
| 9 | * parsing always succeeds — every parse error is recoverable. Errors are |
| 10 | * collected on the tokenizer and exposed to the caller for diagnostics. |
| 11 | */ |
| 12 | final readonly class ParseError |
| 13 | { |
| 14 | public function __construct( |
| 15 | public ParseErrorCode $code, |
| 16 | public int $position, |
| 17 | ) {} |
| 18 | } |