diff --git a/src/utils.php b/src/utils.php index 97e091d8..af47a96e 100644 --- a/src/utils.php +++ b/src/utils.php @@ -38,7 +38,7 @@ function pathToUri(string $filepath): string function uriToPath(string $uri) { $fragments = parse_url($uri); - if ($fragments === null || !isset($fragments['scheme']) || $fragments['scheme'] !== 'file') { + if ($fragments === false || !isset($fragments['scheme']) || $fragments['scheme'] !== 'file') { throw new InvalidArgumentException("Not a valid file URI: $uri"); } $filepath = urldecode($fragments['path']);