Skip to content

Commit

Permalink
DomPluginTest: Use DOMException
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Jan 5, 2025
1 parent 2c7e947 commit 3927482
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file modified build/kint.phar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Parser/DomPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class DomPlugin extends AbstractPlugin implements PluginBeginInterface
'previousElementSibling' => true,
'nextElementSibling' => true,
'innerHTML' => false,
'outerHTML' => false,
'outerHTML' => true,
'substitutedNodeValue' => false,
];

Expand Down
3 changes: 2 additions & 1 deletion tests/Parser/DomPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use Dom\XMLDocument;
use DOMDocument;
use DOMElement;
use DOMException;
use DOMNode;
use DOMText;
use Error;
Expand Down Expand Up @@ -265,7 +266,7 @@ public function testGetKnownProperties(?object $node)

try {
$node->{$name} = 'test';
} catch (Error $e) {
} catch (Error|DOMException $e) {
$error = true;
}

Expand Down

0 comments on commit 3927482

Please sign in to comment.