Upgrading firebase/php-jwt 5 to 6
Unknownv5.5.1 → v6.11.1
Fetching 20 releases from GitHub…0 / 20
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
PHP requirement changed in v6.10.1: >=5.3.0 → ^8.0.
API changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- removed:
const JWT.ASN1_BIT_STRING - removed:
const JWT.ASN1_INTEGER - removed:
const JWT.ASN1_SEQUENCE - changed:
class BeforeValidException extends \UnexpectedValueException → class BeforeValidException extends \UnexpectedValueException implements JWTExceptionWithPayloadInterface - changed:
class ExpiredException extends \UnexpectedValueException → class ExpiredException extends \UnexpectedValueException implements JWTExceptionWithPayloadInterface - changed:
constructor Key($keyMaterial, $algorithm) → constructor Key($keyMaterial, string $algorithm) - changed:
method Key.getAlgorithm() → method Key.getAlgorithm(): string - changed:
static method JWK.parseKey(array $jwk) → static method JWK.parseKey(array $jwk, ?string $defaultAlg = …): ?Key - changed:
static method JWK.parseKeySet(array $jwks) → static method JWK.parseKeySet(array $jwks, ?string $defaultAlg = …): array - changed:
static method JWT.constantTimeEquals($left, $right) → static method JWT.constantTimeEquals(string $left, string $right): bool - changed:
static method JWT.decode($jwt, $keyOrKeyArray, array $allowed_algs = …) → static method JWT.decode(string $jwt, $keyOrKeyArray, ?stdClass &$headers = …): stdClass - changed:
static method JWT.encode($payload, $key, $alg = …, $keyId = …, $head = …) → static method JWT.encode(array $payload, $key, string $alg, ?string $keyId = …, ?array $head = …): string - changed:
static method JWT.jsonDecode($input) → static method JWT.jsonDecode(string $input) - changed:
static method JWT.jsonEncode($input) → static method JWT.jsonEncode(array $input): string - changed:
static method JWT.sign($msg, $key, $alg = …) → static method JWT.sign(string $msg, $key, string $alg): string - changed:
static method JWT.urlsafeB64Decode($input) → static method JWT.urlsafeB64Decode(string $input): string - changed:
static method JWT.urlsafeB64Encode($input) → static method JWT.urlsafeB64Encode(string $input): string - added:
class CachedKeySet implements ArrayAccess - added:
constructor CachedKeySet(string $jwksUri, ClientInterface $httpClient, RequestFactoryInterface $httpFactory, CacheItemPoolInterface $cache, ?int $expiresAfter = …, bool $rateLimit = …, ?string $defaultAlg = …) - added:
interface JWTExceptionWithPayloadInterface - added:
method BeforeValidException.getPayload(): object - added:
method BeforeValidException.setPayload(object $payload): void - added:
method CachedKeySet.offsetExists($keyId): bool - added:
method CachedKeySet.offsetGet($keyId): Key - added:
method CachedKeySet.offsetSet($offset, $value): void - added:
method CachedKeySet.offsetUnset($offset): void - added:
method ExpiredException.getPayload(): object - added:
method ExpiredException.setPayload(object $payload): void - added:
method JWTExceptionWithPayloadInterface.getPayload(): object - added:
method JWTExceptionWithPayloadInterface.setPayload(object $payload): void - added:
static method JWT.convertBase64UrlToBase64(string $input): string