You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update and improve RSA keys handling and support (#548)
* Update and improve RSA keys handling and support
This update enhances the RSA keys handling in the KeyConverter class, adding support for RSASSA-PSS encryption. It includes a new test case for RSASSA-PSS keys and upgrades the "spomky-labs/pki-framework" dependency, which provides underlying support for encryption algorithms. Key errors are now clarified with enhanced exception handling.
* Update PHPStan baseline with new types rules
The PHPStan baseline is updated to include newly identified type issues concerning return value types in iterable arrays for getSupportedTypes() method in both JWESerializer and JWSSerializer classes. Also, remove irrelevant default property type issues of various command classes thus reducing noise in the baseline file.
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+10-250
Original file line number
Diff line number
Diff line change
@@ -1006,6 +1006,11 @@ parameters:
1006
1006
count:1
1007
1007
path:src/Bundle/Serializer/JWESerializer.php
1008
1008
1009
+
-
1010
+
message:"#^Method Jose\\\\Bundle\\\\JoseFramework\\\\Serializer\\\\JWESerializer\\:\\:getSupportedTypes\\(\\) return type has no value type specified in iterable type array\\.$#"
1011
+
count:1
1012
+
path:src/Bundle/Serializer/JWESerializer.php
1013
+
1009
1014
-
1010
1015
message:"#^Method Jose\\\\Bundle\\\\JoseFramework\\\\Serializer\\\\JWESerializer\\:\\:supportsDenormalization\\(\\) has parameter \\$context with no value type specified in iterable type array\\.$#"
1011
1016
count:1
@@ -1041,6 +1046,11 @@ parameters:
1041
1046
count:1
1042
1047
path:src/Bundle/Serializer/JWSSerializer.php
1043
1048
1049
+
-
1050
+
message:"#^Method Jose\\\\Bundle\\\\JoseFramework\\\\Serializer\\\\JWSSerializer\\:\\:getSupportedTypes\\(\\) return type has no value type specified in iterable type array\\.$#"
1051
+
count:1
1052
+
path:src/Bundle/Serializer/JWSSerializer.php
1053
+
1044
1054
-
1045
1055
message:"#^Method Jose\\\\Bundle\\\\JoseFramework\\\\Serializer\\\\JWSSerializer\\:\\:supportsDenormalization\\(\\) has parameter \\$context with no value type specified in iterable type array\\.$#"
1046
1056
count:1
@@ -1278,86 +1288,16 @@ parameters:
1278
1288
count:1
1279
1289
path:src/Library/Checker/IssuerChecker.php
1280
1290
1281
-
-
1282
-
message:"#^Property Jose\\\\Component\\\\Console\\\\AddKeyIntoKeysetCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
message:"#^Method Jose\\\\Component\\\\Console\\\\GeneratorCommand\\:\\:getOptions\\(\\) return type has no value type specified in iterable type array\\.$#"
1318
1298
count:1
1319
1299
path:src/Library/Console/GeneratorCommand.php
1320
1300
1321
-
-
1322
-
message:"#^Property Jose\\\\Component\\\\Console\\\\GetThumbprintCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1323
-
count:1
1324
-
path:src/Library/Console/GetThumbprintCommand.php
1325
-
1326
-
-
1327
-
message:"#^Property Jose\\\\Component\\\\Console\\\\GetThumbprintCommand\\:\\:\\$defaultName has no type specified\\.$#"
1328
-
count:1
1329
-
path:src/Library/Console/GetThumbprintCommand.php
1330
-
1331
-
-
1332
-
message:"#^Property Jose\\\\Component\\\\Console\\\\JKULoaderCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1333
-
count:1
1334
-
path:src/Library/Console/JKULoaderCommand.php
1335
-
1336
-
-
1337
-
message:"#^Property Jose\\\\Component\\\\Console\\\\JKULoaderCommand\\:\\:\\$defaultName has no type specified\\.$#"
1338
-
count:1
1339
-
path:src/Library/Console/JKULoaderCommand.php
1340
-
1341
-
-
1342
-
message:"#^Property Jose\\\\Component\\\\Console\\\\KeyAnalyzerCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1343
-
count:1
1344
-
path:src/Library/Console/KeyAnalyzerCommand.php
1345
-
1346
-
-
1347
-
message:"#^Property Jose\\\\Component\\\\Console\\\\KeyAnalyzerCommand\\:\\:\\$defaultName has no type specified\\.$#"
1348
-
count:1
1349
-
path:src/Library/Console/KeyAnalyzerCommand.php
1350
-
1351
-
-
1352
-
message:"#^Property Jose\\\\Component\\\\Console\\\\KeyFileLoaderCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1353
-
count:1
1354
-
path:src/Library/Console/KeyFileLoaderCommand.php
1355
-
1356
-
-
1357
-
message:"#^Property Jose\\\\Component\\\\Console\\\\KeyFileLoaderCommand\\:\\:\\$defaultName has no type specified\\.$#"
1358
-
count:1
1359
-
path:src/Library/Console/KeyFileLoaderCommand.php
1360
-
1361
1301
-
1362
1302
message:"#^Parameter \\#1 \\$jwk of method Jose\\\\Component\\\\KeyManagement\\\\Analyzer\\\\KeyAnalyzerManager\\:\\:analyze\\(\\) expects Jose\\\\Component\\\\Core\\\\JWK, mixed given\\.$#"
0 commit comments