From 893cbbc3fd72b051660e1afe1c1952e627c79483 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 31 Oct 2024 10:16:22 +0100 Subject: [PATCH 1/2] Add PHP 8.3 and 8.4 to matrix --- .github/workflows/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a9f86bcb..7a8138ca 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,6 +13,8 @@ jobs: - '8.0' - '8.1' - '8.2' + - '8.3' + - '8.4' steps: - name: Checkout uses: actions/checkout@v4 From 667dcb079d11fb3b0a3ca3a62417797e4ddd9fb3 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 31 Oct 2024 10:17:28 +0100 Subject: [PATCH 2/2] Make compatible with PHP 8.4 > Cloudinary\Utils::tryParseUrl(): Implicitly marking parameter $allowedSchemes as nullable is deprecated, the explicit nullable type must be used instead --- src/Utils/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {