Skip to content

Commit ff5c65a

Browse files
authoredJan 18, 2019
Merge pull request #22 from MarcusSchwarz/issue-21
fixes #21
2 parents d79f9f4 + 21bcec0 commit ff5c65a

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)