Skip to content

Commit

Permalink
Make compatible with PHP 8.4
Browse files Browse the repository at this point in the history
> Cloudinary\Utils::tryParseUrl(): Implicitly marking parameter $allowedSchemes as nullable is deprecated, the explicit nullable type must be used instead
  • Loading branch information
ruudk authored Oct 31, 2024
1 parent 893cbbc commit 667dcb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 667dcb0

Please sign in to comment.