Update src/Data/Payload.php
Sync GitHub / sync (push) Successful in 6s
Tests / test (pull_request) Failing after 1m1s

updated to match psr12
This commit is contained in:
2026-08-11 09:32:54 -04:00
parent e4f5e046f6
commit 371d1cebb0
+4 -2
View File
@@ -19,8 +19,10 @@ final class Payload
public static function decode(string $base64url): ?Payload
{
/* convert the base64url into json string */
$json = base64_decode(str_pad(strtr($base64url, '-_', '+/'),
strlen($base64url) + strlen($base64url) % 4, '='
$json = base64_decode(str_pad(
strtr($base64url, '-_', '+/'),
strlen($base64url) + strlen($base64url) % 4,
'='
), true);
if ($json) {
/* convert the json string into real data */