From 2f71121ba0e40d0cf102c0d9af55dac625bafe26 Mon Sep 17 00:00:00 2001 From: insolita Date: Sun, 27 Dec 2020 20:58:54 +0800 Subject: [PATCH] fix #92 --- src/ReferenceContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'); }