From 85dc6111d2e7be3ee26c620e1f9ce871e80ed0f7 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Tue, 2 Jul 2024 18:18:00 +0200 Subject: [PATCH 1/3] Add RangeException to Base64UrlSafe The code in src/Library/Core/Util/Base64UrlSafe.php has been updated to include the use of RangeException. This will further expand its capability in terms of handling exceptional scenarios. --- src/Library/Core/Util/Base64UrlSafe.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Library/Core/Util/Base64UrlSafe.php b/src/Library/Core/Util/Base64UrlSafe.php index d7863ad3..e6a6b368 100644 --- a/src/Library/Core/Util/Base64UrlSafe.php +++ b/src/Library/Core/Util/Base64UrlSafe.php @@ -27,6 +27,8 @@ * SOFTWARE. */ +use RangeException; + /** * @readonly */ From 2892229b9412985306e9598966a84ccd67a4d167 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Tue, 2 Jul 2024 18:24:18 +0200 Subject: [PATCH 2/3] Add RangeException to Base64UrlSafe The code in src/Library/Core/Util/Base64UrlSafe.php has been updated to include the use of RangeException. This will further expand its capability in terms of handling exceptional scenarios. --- phpstan-baseline.neon | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 77134450..d7e10bd9 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1673,11 +1673,6 @@ parameters: count: 2 path: src/Library/Core/Util/Base64UrlSafe.php - - - message: "#^Instantiated class Jose\\\\Component\\\\Core\\\\Util\\\\RangeException not found\\.$#" - count: 3 - path: src/Library/Core/Util/Base64UrlSafe.php - - message: "#^Method Jose\\\\Component\\\\Core\\\\Util\\\\Base64UrlSafe\\:\\:safeSubstr\\(\\) has parameter \\$length with no type specified\\.$#" count: 1 @@ -1688,11 +1683,6 @@ parameters: count: 2 path: src/Library/Core/Util/Base64UrlSafe.php - - - message: "#^Throwing object of an unknown class Jose\\\\Component\\\\Core\\\\Util\\\\RangeException\\.$#" - count: 3 - path: src/Library/Core/Util/Base64UrlSafe.php - - message: "#^Variable \\$i might not be defined\\.$#" count: 2 From 15979828524fc24c61b58a1482f87f209729fe14 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Tue, 2 Jul 2024 18:25:59 +0200 Subject: [PATCH 3/3] Add RangeException to Base64UrlSafe The code in src/Library/Core/Util/Base64UrlSafe.php has been updated to include the use of RangeException. This will further expand its capability in terms of handling exceptional scenarios. --- .gitsplit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitsplit.yml b/.gitsplit.yml index ce253cf0..c11a97f9 100644 --- a/.gitsplit.yml +++ b/.gitsplit.yml @@ -57,5 +57,5 @@ splits: target: "https://${GH_TOKEN}@github.com/web-token/signature-pack.git" origins: - - ^\d+\.\d+\.x$ - - ^\d+\.\d+\.\d+$ + - ^(1|2|3)\.\d+\.x$ + - ^(1|2|3)\.\d+\.\d+$