Skip to content

Commit c693d56

Browse files
committed
Stan + ECS errors
1 parent 81d17ce commit c693d56

File tree

4 files changed

+272
-34
lines changed

4 files changed

+272
-34
lines changed

phpstan-baseline.neon

Lines changed: 250 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -920,11 +920,6 @@ parameters:
920920
count: 1
921921
path: src/Bundle/Serializer/JWESerializer.php
922922

923-
-
924-
message: "#^Method Jose\\\\Bundle\\\\JoseFramework\\\\Serializer\\\\JWESerializer\\:\\:getSupportedTypes\\(\\) return type has no value type specified in iterable type array\\.$#"
925-
count: 1
926-
path: src/Bundle/Serializer/JWESerializer.php
927-
928923
-
929924
message: "#^Method Jose\\\\Bundle\\\\JoseFramework\\\\Serializer\\\\JWESerializer\\:\\:supportsDenormalization\\(\\) has parameter \\$context with no value type specified in iterable type array\\.$#"
930925
count: 1
@@ -960,11 +955,6 @@ parameters:
960955
count: 1
961956
path: src/Bundle/Serializer/JWSSerializer.php
962957

963-
-
964-
message: "#^Method Jose\\\\Bundle\\\\JoseFramework\\\\Serializer\\\\JWSSerializer\\:\\:getSupportedTypes\\(\\) return type has no value type specified in iterable type array\\.$#"
965-
count: 1
966-
path: src/Bundle/Serializer/JWSSerializer.php
967-
968958
-
969959
message: "#^Method Jose\\\\Bundle\\\\JoseFramework\\\\Serializer\\\\JWSSerializer\\:\\:supportsDenormalization\\(\\) has parameter \\$context with no value type specified in iterable type array\\.$#"
970960
count: 1
@@ -1185,16 +1175,86 @@ parameters:
11851175
count: 1
11861176
path: src/Library/Checker/IssuerChecker.php
11871177

1178+
-
1179+
message: "#^Property Jose\\\\Component\\\\Console\\\\AddKeyIntoKeysetCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1180+
count: 1
1181+
path: src/Library/Console/AddKeyIntoKeysetCommand.php
1182+
1183+
-
1184+
message: "#^Property Jose\\\\Component\\\\Console\\\\AddKeyIntoKeysetCommand\\:\\:\\$defaultName has no type specified\\.$#"
1185+
count: 1
1186+
path: src/Library/Console/AddKeyIntoKeysetCommand.php
1187+
1188+
-
1189+
message: "#^Property Jose\\\\Component\\\\Console\\\\EcKeyGeneratorCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1190+
count: 1
1191+
path: src/Library/Console/EcKeyGeneratorCommand.php
1192+
1193+
-
1194+
message: "#^Property Jose\\\\Component\\\\Console\\\\EcKeyGeneratorCommand\\:\\:\\$defaultName has no type specified\\.$#"
1195+
count: 1
1196+
path: src/Library/Console/EcKeyGeneratorCommand.php
1197+
11881198
-
11891199
message: "#^Cannot cast mixed to int\\.$#"
11901200
count: 1
11911201
path: src/Library/Console/EcKeysetGeneratorCommand.php
11921202

1203+
-
1204+
message: "#^Property Jose\\\\Component\\\\Console\\\\EcKeysetGeneratorCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1205+
count: 1
1206+
path: src/Library/Console/EcKeysetGeneratorCommand.php
1207+
1208+
-
1209+
message: "#^Property Jose\\\\Component\\\\Console\\\\EcKeysetGeneratorCommand\\:\\:\\$defaultName has no type specified\\.$#"
1210+
count: 1
1211+
path: src/Library/Console/EcKeysetGeneratorCommand.php
1212+
11931213
-
11941214
message: "#^Method Jose\\\\Component\\\\Console\\\\GeneratorCommand\\:\\:getOptions\\(\\) return type has no value type specified in iterable type array\\.$#"
11951215
count: 1
11961216
path: src/Library/Console/GeneratorCommand.php
11971217

1218+
-
1219+
message: "#^Property Jose\\\\Component\\\\Console\\\\GetThumbprintCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1220+
count: 1
1221+
path: src/Library/Console/GetThumbprintCommand.php
1222+
1223+
-
1224+
message: "#^Property Jose\\\\Component\\\\Console\\\\GetThumbprintCommand\\:\\:\\$defaultName has no type specified\\.$#"
1225+
count: 1
1226+
path: src/Library/Console/GetThumbprintCommand.php
1227+
1228+
-
1229+
message: "#^Property Jose\\\\Component\\\\Console\\\\JKULoaderCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1230+
count: 1
1231+
path: src/Library/Console/JKULoaderCommand.php
1232+
1233+
-
1234+
message: "#^Property Jose\\\\Component\\\\Console\\\\JKULoaderCommand\\:\\:\\$defaultName has no type specified\\.$#"
1235+
count: 1
1236+
path: src/Library/Console/JKULoaderCommand.php
1237+
1238+
-
1239+
message: "#^Property Jose\\\\Component\\\\Console\\\\KeyAnalyzerCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1240+
count: 1
1241+
path: src/Library/Console/KeyAnalyzerCommand.php
1242+
1243+
-
1244+
message: "#^Property Jose\\\\Component\\\\Console\\\\KeyAnalyzerCommand\\:\\:\\$defaultName has no type specified\\.$#"
1245+
count: 1
1246+
path: src/Library/Console/KeyAnalyzerCommand.php
1247+
1248+
-
1249+
message: "#^Property Jose\\\\Component\\\\Console\\\\KeyFileLoaderCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1250+
count: 1
1251+
path: src/Library/Console/KeyFileLoaderCommand.php
1252+
1253+
-
1254+
message: "#^Property Jose\\\\Component\\\\Console\\\\KeyFileLoaderCommand\\:\\:\\$defaultName has no type specified\\.$#"
1255+
count: 1
1256+
path: src/Library/Console/KeyFileLoaderCommand.php
1257+
11981258
-
11991259
message: "#^Parameter \\#1 \\$jwk of method Jose\\\\Component\\\\KeyManagement\\\\Analyzer\\\\KeyAnalyzerManager\\:\\:analyze\\(\\) expects Jose\\\\Component\\\\Core\\\\JWK, mixed given\\.$#"
12001260
count: 1
@@ -1205,46 +1265,226 @@ parameters:
12051265
count: 1
12061266
path: src/Library/Console/KeysetAnalyzerCommand.php
12071267

1268+
-
1269+
message: "#^Property Jose\\\\Component\\\\Console\\\\KeysetAnalyzerCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1270+
count: 1
1271+
path: src/Library/Console/KeysetAnalyzerCommand.php
1272+
1273+
-
1274+
message: "#^Property Jose\\\\Component\\\\Console\\\\KeysetAnalyzerCommand\\:\\:\\$defaultName has no type specified\\.$#"
1275+
count: 1
1276+
path: src/Library/Console/KeysetAnalyzerCommand.php
1277+
1278+
-
1279+
message: "#^Property Jose\\\\Component\\\\Console\\\\MergeKeysetCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1280+
count: 1
1281+
path: src/Library/Console/MergeKeysetCommand.php
1282+
1283+
-
1284+
message: "#^Property Jose\\\\Component\\\\Console\\\\MergeKeysetCommand\\:\\:\\$defaultName has no type specified\\.$#"
1285+
count: 1
1286+
path: src/Library/Console/MergeKeysetCommand.php
1287+
12081288
-
12091289
message: "#^Attribute class Jose\\\\Component\\\\Console\\\\AsCommand does not exist\\.$#"
12101290
count: 1
12111291
path: src/Library/Console/NoneKeyGeneratorCommand.php
12121292

1293+
-
1294+
message: "#^Property Jose\\\\Component\\\\Console\\\\NoneKeyGeneratorCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1295+
count: 1
1296+
path: src/Library/Console/NoneKeyGeneratorCommand.php
1297+
1298+
-
1299+
message: "#^Property Jose\\\\Component\\\\Console\\\\NoneKeyGeneratorCommand\\:\\:\\$defaultName has no type specified\\.$#"
1300+
count: 1
1301+
path: src/Library/Console/NoneKeyGeneratorCommand.php
1302+
12131303
-
12141304
message: "#^Cannot cast mixed to int\\.$#"
12151305
count: 1
12161306
path: src/Library/Console/OctKeyGeneratorCommand.php
12171307

1308+
-
1309+
message: "#^Property Jose\\\\Component\\\\Console\\\\OctKeyGeneratorCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1310+
count: 1
1311+
path: src/Library/Console/OctKeyGeneratorCommand.php
1312+
1313+
-
1314+
message: "#^Property Jose\\\\Component\\\\Console\\\\OctKeyGeneratorCommand\\:\\:\\$defaultName has no type specified\\.$#"
1315+
count: 1
1316+
path: src/Library/Console/OctKeyGeneratorCommand.php
1317+
12181318
-
12191319
message: "#^Cannot cast mixed to int\\.$#"
12201320
count: 2
12211321
path: src/Library/Console/OctKeysetGeneratorCommand.php
12221322

1323+
-
1324+
message: "#^Property Jose\\\\Component\\\\Console\\\\OctKeysetGeneratorCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1325+
count: 1
1326+
path: src/Library/Console/OctKeysetGeneratorCommand.php
1327+
1328+
-
1329+
message: "#^Property Jose\\\\Component\\\\Console\\\\OctKeysetGeneratorCommand\\:\\:\\$defaultName has no type specified\\.$#"
1330+
count: 1
1331+
path: src/Library/Console/OctKeysetGeneratorCommand.php
1332+
1333+
-
1334+
message: "#^Property Jose\\\\Component\\\\Console\\\\OkpKeyGeneratorCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1335+
count: 1
1336+
path: src/Library/Console/OkpKeyGeneratorCommand.php
1337+
1338+
-
1339+
message: "#^Property Jose\\\\Component\\\\Console\\\\OkpKeyGeneratorCommand\\:\\:\\$defaultName has no type specified\\.$#"
1340+
count: 1
1341+
path: src/Library/Console/OkpKeyGeneratorCommand.php
1342+
12231343
-
12241344
message: "#^Cannot cast mixed to int\\.$#"
12251345
count: 1
12261346
path: src/Library/Console/OkpKeysetGeneratorCommand.php
12271347

1348+
-
1349+
message: "#^Property Jose\\\\Component\\\\Console\\\\OkpKeysetGeneratorCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1350+
count: 1
1351+
path: src/Library/Console/OkpKeysetGeneratorCommand.php
1352+
1353+
-
1354+
message: "#^Property Jose\\\\Component\\\\Console\\\\OkpKeysetGeneratorCommand\\:\\:\\$defaultName has no type specified\\.$#"
1355+
count: 1
1356+
path: src/Library/Console/OkpKeysetGeneratorCommand.php
1357+
1358+
-
1359+
message: "#^Property Jose\\\\Component\\\\Console\\\\OptimizeRsaKeyCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1360+
count: 1
1361+
path: src/Library/Console/OptimizeRsaKeyCommand.php
1362+
1363+
-
1364+
message: "#^Property Jose\\\\Component\\\\Console\\\\OptimizeRsaKeyCommand\\:\\:\\$defaultName has no type specified\\.$#"
1365+
count: 1
1366+
path: src/Library/Console/OptimizeRsaKeyCommand.php
1367+
1368+
-
1369+
message: "#^Property Jose\\\\Component\\\\Console\\\\P12CertificateLoaderCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1370+
count: 1
1371+
path: src/Library/Console/P12CertificateLoaderCommand.php
1372+
1373+
-
1374+
message: "#^Property Jose\\\\Component\\\\Console\\\\P12CertificateLoaderCommand\\:\\:\\$defaultName has no type specified\\.$#"
1375+
count: 1
1376+
path: src/Library/Console/P12CertificateLoaderCommand.php
1377+
1378+
-
1379+
message: "#^Property Jose\\\\Component\\\\Console\\\\PemConverterCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1380+
count: 1
1381+
path: src/Library/Console/PemConverterCommand.php
1382+
1383+
-
1384+
message: "#^Property Jose\\\\Component\\\\Console\\\\PemConverterCommand\\:\\:\\$defaultName has no type specified\\.$#"
1385+
count: 1
1386+
path: src/Library/Console/PemConverterCommand.php
1387+
12281388
-
12291389
message: "#^Attribute class Jose\\\\Component\\\\Console\\\\AsCommand does not exist\\.$#"
12301390
count: 1
12311391
path: src/Library/Console/PublicKeyCommand.php
12321392

1393+
-
1394+
message: "#^Property Jose\\\\Component\\\\Console\\\\PublicKeyCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1395+
count: 1
1396+
path: src/Library/Console/PublicKeyCommand.php
1397+
1398+
-
1399+
message: "#^Property Jose\\\\Component\\\\Console\\\\PublicKeyCommand\\:\\:\\$defaultName has no type specified\\.$#"
1400+
count: 1
1401+
path: src/Library/Console/PublicKeyCommand.php
1402+
1403+
-
1404+
message: "#^Property Jose\\\\Component\\\\Console\\\\PublicKeysetCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1405+
count: 1
1406+
path: src/Library/Console/PublicKeysetCommand.php
1407+
1408+
-
1409+
message: "#^Property Jose\\\\Component\\\\Console\\\\PublicKeysetCommand\\:\\:\\$defaultName has no type specified\\.$#"
1410+
count: 1
1411+
path: src/Library/Console/PublicKeysetCommand.php
1412+
1413+
-
1414+
message: "#^Property Jose\\\\Component\\\\Console\\\\RotateKeysetCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1415+
count: 1
1416+
path: src/Library/Console/RotateKeysetCommand.php
1417+
1418+
-
1419+
message: "#^Property Jose\\\\Component\\\\Console\\\\RotateKeysetCommand\\:\\:\\$defaultName has no type specified\\.$#"
1420+
count: 1
1421+
path: src/Library/Console/RotateKeysetCommand.php
1422+
12331423
-
12341424
message: "#^Cannot cast mixed to int\\.$#"
12351425
count: 1
12361426
path: src/Library/Console/RsaKeyGeneratorCommand.php
12371427

1428+
-
1429+
message: "#^Property Jose\\\\Component\\\\Console\\\\RsaKeyGeneratorCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1430+
count: 1
1431+
path: src/Library/Console/RsaKeyGeneratorCommand.php
1432+
1433+
-
1434+
message: "#^Property Jose\\\\Component\\\\Console\\\\RsaKeyGeneratorCommand\\:\\:\\$defaultName has no type specified\\.$#"
1435+
count: 1
1436+
path: src/Library/Console/RsaKeyGeneratorCommand.php
1437+
12381438
-
12391439
message: "#^Cannot cast mixed to int\\.$#"
12401440
count: 2
12411441
path: src/Library/Console/RsaKeysetGeneratorCommand.php
12421442

1443+
-
1444+
message: "#^Property Jose\\\\Component\\\\Console\\\\RsaKeysetGeneratorCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1445+
count: 1
1446+
path: src/Library/Console/RsaKeysetGeneratorCommand.php
1447+
1448+
-
1449+
message: "#^Property Jose\\\\Component\\\\Console\\\\RsaKeysetGeneratorCommand\\:\\:\\$defaultName has no type specified\\.$#"
1450+
count: 1
1451+
path: src/Library/Console/RsaKeysetGeneratorCommand.php
1452+
1453+
-
1454+
message: "#^Property Jose\\\\Component\\\\Console\\\\SecretKeyGeneratorCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1455+
count: 1
1456+
path: src/Library/Console/SecretKeyGeneratorCommand.php
1457+
1458+
-
1459+
message: "#^Property Jose\\\\Component\\\\Console\\\\SecretKeyGeneratorCommand\\:\\:\\$defaultName has no type specified\\.$#"
1460+
count: 1
1461+
path: src/Library/Console/SecretKeyGeneratorCommand.php
1462+
1463+
-
1464+
message: "#^Property Jose\\\\Component\\\\Console\\\\X509CertificateLoaderCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1465+
count: 1
1466+
path: src/Library/Console/X509CertificateLoaderCommand.php
1467+
1468+
-
1469+
message: "#^Property Jose\\\\Component\\\\Console\\\\X509CertificateLoaderCommand\\:\\:\\$defaultName has no type specified\\.$#"
1470+
count: 1
1471+
path: src/Library/Console/X509CertificateLoaderCommand.php
1472+
12431473
-
12441474
message: "#^Attribute class Jose\\\\Component\\\\Console\\\\AsCommand does not exist\\.$#"
12451475
count: 1
12461476
path: src/Library/Console/X5ULoaderCommand.php
12471477

1478+
-
1479+
message: "#^Property Jose\\\\Component\\\\Console\\\\X5ULoaderCommand\\:\\:\\$defaultDescription has no type specified\\.$#"
1480+
count: 1
1481+
path: src/Library/Console/X5ULoaderCommand.php
1482+
1483+
-
1484+
message: "#^Property Jose\\\\Component\\\\Console\\\\X5ULoaderCommand\\:\\:\\$defaultName has no type specified\\.$#"
1485+
count: 1
1486+
path: src/Library/Console/X5ULoaderCommand.php
1487+
12481488
-
12491489
message: "#^Property Jose\\\\Component\\\\Core\\\\AlgorithmManager\\:\\:\\$algorithms type has no value type specified in iterable type array\\.$#"
12501490
count: 1
@@ -1870,11 +2110,6 @@ parameters:
18702110
count: 1
18712111
path: src/Library/KeyManagement/KeyConverter/KeyConverter.php
18722112

1873-
-
1874-
message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|null given\\.$#"
1875-
count: 1
1876-
path: src/Library/KeyManagement/KeyConverter/KeyConverter.php
1877-
18782113
-
18792114
message: "#^Method Jose\\\\Component\\\\KeyManagement\\\\KeyConverter\\\\RSAKey\\:\\:__construct\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
18802115
count: 1

0 commit comments

Comments
 (0)