Skip to content

Commit 3b127f8

Browse files
committed
fix review suggestions/comments
1 parent 675c339 commit 3b127f8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/XML/SchemaValidatableElementTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\XML;
66

77
use Dom;
8-
use Dom\XMLDocument;
8+
use LogicException;
99
use SimpleSAML\XML\Assert\Assert;
1010
use SimpleSAML\XML\Exception\IOException;
1111
use SimpleSAML\XML\Exception\RuntimeException;
@@ -47,8 +47,8 @@ public static function schemaValidate(Dom\Document $document, ?string $schemaFil
4747
$schemaFile = self::getSchemaFile();
4848
}
4949

50-
if (!$document instanceof XMLDocument) {
51-
throw new \LogicException('Schema validation requires an instance of Dom\\XMLDocument.');
50+
if (!$document instanceof Dom\XMLDocument) {
51+
throw new LogicException('Schema validation requires an instance of Dom\\XMLDocument.');
5252
}
5353

5454
$root = $document->documentElement;

0 commit comments

Comments
 (0)