Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
n/a
0 / 0
CRAP
n/a
0 / 0
DOMException
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2// phpcs:disable Generic.Classes.DuplicateClassName.Found
3// phpcs:disable Generic.Files.OneObjectStructurePerFile.MultipleFound
4declare( strict_types = 1 );
5
6namespace Wikimedia\Parsoid\DOM;
7
8use Wikimedia\Parsoid\Utils\DOMCompat;
9
10if ( DOMCompat::isUsingDodo() ) {
11
12    class_alias( \Wikimedia\Dodo\DOMException::class, DOMException::class );
13
14} elseif ( DOMCompat::isUsing84Dom() ) {
15
16    class_alias( \DOMException::class, DOMException::class );
17
18} else {
19
20    class_alias( \DOMException::class, DOMException::class );
21
22}
23
24// phpcs:ignore Generic.CodeAnalysis.UnconditionalIfStatement.Found
25if ( false ) {
26    /**
27     * This is needed for classmap-authoritative support (T409283)
28     * This should be re-evaluated once support for PHP 8.3 is dropped
29     */
30    class DOMException {
31    }
32}