Skip to content

Commit 21bcec0

Browse files
author
Marcus Schwarz
committed
fixes #21
1 parent d79f9f4 commit 21bcec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Loaders/File.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function loadSchema(string $uri)
5151
if (isset($this->schemas[$uri])) {
5252
return $this->schemas[$uri];
5353
}
54-
if (strpos($uri, $this->prefix) !== 0) {
54+
if ($this->prefixLength !== 0 && strpos($uri, $this->prefix) !== 0) {
5555
return null;
5656
}
5757
$path = substr($uri, $this->prefixLength);

0 commit comments

Comments
 (0)