diff --git a/src/Utils/Utils.php b/src/Utils/Utils.php index 762e946d..e1f89d92 100644 --- a/src/Utils/Utils.php +++ b/src/Utils/Utils.php @@ -199,7 +199,7 @@ public static function randomPublicId($prefix = '') * * @return false|UriInterface */ - public static function tryParseUrl($url, array $allowedSchemes = null) + public static function tryParseUrl($url, ?array $allowedSchemes = null) { if (! $url instanceof UriInterface) { if (! is_string($url)) {