MDL-84164 libaries: Upgrade PHP-JWT to 6.11.0

The library raises the minimum required PHP version to 8.0 and comes
with an advertised PHP 8.4 compatibility.

Signed-off-by: Daniel Ziegenberg <[email protected]>
This commit is contained in:
Daniel Ziegenberg
2025-05-06 06:36:19 +02:00
parent 8cb5d000a1
commit 415ff35be6
9 changed files with 74 additions and 43 deletions
+2 -11
View File
@@ -9,18 +9,13 @@ use TypeError;
class Key
{
/** @var string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate */
private $keyMaterial;
/** @var string */
private $algorithm;
/**
* @param string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate $keyMaterial
* @param string $algorithm
*/
public function __construct(
$keyMaterial,
string $algorithm
private $keyMaterial,
private string $algorithm
) {
if (
!\is_string($keyMaterial)
@@ -38,10 +33,6 @@ class Key
if (empty($algorithm)) {
throw new InvalidArgumentException('Algorithm must not be empty');
}
// TODO: Remove in PHP 8.0 in favor of class constructor property promotion
$this->keyMaterial = $keyMaterial;
$this->algorithm = $algorithm;
}
/**