Skip to content

Commit

Permalink
refactor: Replace ternary variable with explicit cast to string
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyvdSluijs committed Aug 27, 2024
1 parent b611aeb commit b554f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonSchema/Uri/UriResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class UriResolver implements UriResolverInterface
*/
public function parse($uri)
{
preg_match('|^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?|', $uri ?: '', $match);
preg_match('|^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?|', (string) $uri, $match);

$components = array();
if (5 < count($match)) {
Expand Down

0 comments on commit b554f78

Please sign in to comment.