diff --git a/src/ReferenceContext.php b/src/ReferenceContext.php index ac5427d..3d824a6 100644 --- a/src/ReferenceContext.php +++ b/src/ReferenceContext.php @@ -92,7 +92,7 @@ private function normalizeUri($uri) } if (stripos(PHP_OS, 'WIN') === 0 && strncmp(substr($uri, 1), ':\\', 2) === 0) { $uri = $this->reduceDots($uri); - return "file:///" . strtr($uri, [' ' => '%20', '\\' => '/']); + return "file://" . strtr($uri, [' ' => '%20', '\\' => '/']); } throw new UnresolvableReferenceException('Can not resolve references for a specification given as a relative path.'); }