Skip to content

Commit

Permalink
Minor fixes around parse_url() checks
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Oct 22, 2024
1 parent a05d9f8 commit b9d94b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private function isAbsolutePath(string $file): bool
&& ':' === $file[1]
&& ('\\' === $file[2] || '/' === $file[2])
)
|| null !== parse_url($file, \PHP_URL_SCHEME)
|| parse_url($file, \PHP_URL_SCHEME)
) {
return true;
}
Expand Down

0 comments on commit b9d94b0

Please sign in to comment.