Skip to content

Add key size validation #606

Add key size validation

Add key size validation #606

Re-run triggered November 13, 2025 21:37
Status Failure
Total duration 1m 5s
Artifacts

tests.yml

on: pull_request
PHP Style Check
17s
PHP Style Check
PHPStan Static Analysis
20s
PHPStan Static Analysis
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

6 errors
PHP Style Check
Process completed with exit code 8.
PHPStan Static Analysis
Process completed with exit code 1.
PHPStan Static Analysis: src/JWT.php#L714
Cannot access offset 'bits' on array|false.
PHPStan Static Analysis: src/JWT.php#L713
Parameter #1 $key of function openssl_pkey_get_details expects OpenSSLAsymmetricKey, OpenSSLAsymmetricKey|false given.
PHPStan Static Analysis: src/JWT.php#L332
Parameter #1 $key of static method Firebase\JWT\JWT::validateRsaKeyLength() expects OpenSSLAsymmetricKey|OpenSSLCertificate, OpenSSLAsymmetricKey|OpenSSLCertificate|resource|string given.
PHPStan Static Analysis: src/JWT.php#L270
Parameter #1 $key of static method Firebase\JWT\JWT::validateRsaKeyLength() expects OpenSSLAsymmetricKey|OpenSSLCertificate, OpenSSLAsymmetricKey|OpenSSLCertificate|resource|string given.