Skip to content

Commit 1e9f8bf

Browse files
authored
Add RangeException to Base64UrlSafe (#577)
* 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.
1 parent 1fe7ca8 commit 1e9f8bf

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

.gitsplit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ splits:
5757
target: "https://${GH_TOKEN}@github.com/web-token/signature-pack.git"
5858

5959
origins:
60-
- ^\d+\.\d+\.x$
61-
- ^\d+\.\d+\.\d+$
60+
- ^(1|2|3)\.\d+\.x$
61+
- ^(1|2|3)\.\d+\.\d+$

phpstan-baseline.neon

-10
Original file line numberDiff line numberDiff line change
@@ -1673,11 +1673,6 @@ parameters:
16731673
count: 2
16741674
path: src/Library/Core/Util/Base64UrlSafe.php
16751675

1676-
-
1677-
message: "#^Instantiated class Jose\\\\Component\\\\Core\\\\Util\\\\RangeException not found\\.$#"
1678-
count: 3
1679-
path: src/Library/Core/Util/Base64UrlSafe.php
1680-
16811676
-
16821677
message: "#^Method Jose\\\\Component\\\\Core\\\\Util\\\\Base64UrlSafe\\:\\:safeSubstr\\(\\) has parameter \\$length with no type specified\\.$#"
16831678
count: 1
@@ -1688,11 +1683,6 @@ parameters:
16881683
count: 2
16891684
path: src/Library/Core/Util/Base64UrlSafe.php
16901685

1691-
-
1692-
message: "#^Throwing object of an unknown class Jose\\\\Component\\\\Core\\\\Util\\\\RangeException\\.$#"
1693-
count: 3
1694-
path: src/Library/Core/Util/Base64UrlSafe.php
1695-
16961686
-
16971687
message: "#^Variable \\$i might not be defined\\.$#"
16981688
count: 2

src/Library/Core/Util/Base64UrlSafe.php

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
* SOFTWARE.
2828
*/
2929

30+
use RangeException;
31+
3032
/**
3133
* @readonly
3234
*/

0 commit comments

Comments
 (0)