We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac94ea5 commit 5224ee9Copy full SHA for 5224ee9
src/JsonSchema/Uri/UriResolver.php
@@ -28,7 +28,7 @@ class UriResolver implements UriResolverInterface
28
*/
29
public function parse($uri)
30
{
31
- preg_match('|^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?|', $uri, $match);
+ preg_match('|^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?|', $uri ?: '', $match);
32
33
$components = array();
34
if (5 < count($match)) {
0 commit comments