Skip to content

Commit a3f044c

Browse files
committed
Expand Symfony version constraints to support 8.0
Updated `composer.json` and `phpstan-baseline.neon` to include support for Symfony 8.0. Adjusted static analysis baselines to reflect recent changes in class and method references.
1 parent 5e7331f commit a3f044c

File tree

3 files changed

+43
-24
lines changed

3 files changed

+43
-24
lines changed

composer.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@
5252
"psr/clock": "^1.0",
5353
"psr/event-dispatcher": "^1.0",
5454
"spomky-labs/pki-framework": "^1.2.1",
55-
"symfony/config": "^7.0",
56-
"symfony/console": "^7.0",
57-
"symfony/dependency-injection": "^7.0",
58-
"symfony/event-dispatcher": "^7.0",
55+
"symfony/config": "^7.0|^8.0",
56+
"symfony/console": "^7.0|^8.0",
57+
"symfony/dependency-injection": "^7.0|^8.0",
58+
"symfony/event-dispatcher": "^7.0|^8.0",
5959
"symfony/http-client-contracts": "^3.4",
60-
"symfony/http-kernel": "^7.0"
60+
"symfony/http-kernel": "^7.0|^8.0"
6161
},
6262
"require-dev": {
6363
"ext-curl": "*",
6464
"ext-gmp": "*",
6565
"ext-sodium": "*",
6666
"ekino/phpstan-banned-code": "^2.0|^3.0",
6767
"ergebnis/phpunit-slow-test-detector": "^2.14",
68-
"infection/infection": "^0.29",
68+
"infection/infection": "^0.31",
6969
"matthiasnoback/symfony-config-test": "^6.0",
7070
"paragonie/sodium_compat": "^1.20|^2.0",
7171
"php-parallel-lint/php-parallel-lint": "^1.3",
@@ -78,21 +78,21 @@
7878
"phpstan/phpstan-strict-rules": "^1.4|^2.0",
7979
"phpstan/phpstan-symfony": "^1.3|^2.0",
8080
"phpunit/phpunit": "^10.5.10|^11.0|^12.0",
81-
"deptrac/deptrac": "^2.0|^3.0",
81+
"deptrac/deptrac": "^2.0|^3.0|^4.0",
8282
"rector/rector": "^1.0|^2.0",
8383
"roave/security-advisories": "dev-latest",
84-
"spomky-labs/aes-key-wrap": "^7.0",
84+
"spomky-labs/aes-key-wrap": "^7.0|^8.0",
8585
"staabm/phpstan-dba": "^0.2.79|^0.3|^0.4",
86-
"staabm/phpstan-todo-by": "^0.1.25|^0.2",
86+
"staabm/phpstan-todo-by": "^0.1.25|^0.2|^0.3",
8787
"struggle-for-php/sfp-phpstan-psr-log": "^0.20|^0.21|^0.22|^0.23|^0.24",
88-
"symfony/browser-kit": "^7.0",
89-
"symfony/http-client": "^7.0",
90-
"symfony/clock": "^7.0",
91-
"symfony/finder": "^7.0",
92-
"symfony/framework-bundle": "^7.0",
93-
"symfony/serializer": "^7.0",
94-
"symfony/var-dumper": "^7.0",
95-
"symfony/yaml": "^7.0",
88+
"symfony/browser-kit": "^7.0|^8.0",
89+
"symfony/http-client": "^7.0|^8.0",
90+
"symfony/clock": "^7.0|^8.0",
91+
"symfony/finder": "^7.0|^8.0",
92+
"symfony/framework-bundle": "^7.0|^8.0",
93+
"symfony/serializer": "^7.0|^8.0",
94+
"symfony/var-dumper": "^7.0|^8.0",
95+
"symfony/yaml": "^7.0|^8.0",
9696
"symplify/easy-coding-standard": "^12.0"
9797
},
9898
"replace": {
@@ -116,5 +116,6 @@
116116
"php-http/discovery": true,
117117
"infection/extension-installer": false
118118
}
119-
}
119+
},
120+
"minimum-stability": "dev"
120121
}

phpstan-baseline.neon

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ parameters:
6666
count: 1
6767
path: src/Bundle/DependencyInjection/Compiler/KeySetControllerCompilerPass.php
6868

69+
-
70+
message: '#^Class Jose\\Bundle\\JoseFramework\\DependencyInjection\\JoseFrameworkExtension extends internal class Symfony\\Component\\HttpKernel\\DependencyInjection\\Extension\.$#'
71+
identifier: class.extendsInternalClass
72+
count: 1
73+
path: src/Bundle/DependencyInjection/JoseFrameworkExtension.php
74+
6975
-
7076
message: '#^Method Jose\\Bundle\\JoseFramework\\DependencyInjection\\JoseFrameworkExtension\:\:getConfiguration\(\) has parameter \$configs with no value type specified in iterable type array\.$#'
7177
identifier: missingType.iterableValue
@@ -2365,7 +2371,7 @@ parameters:
23652371
path: src/Bundle/DependencyInjection/Source/NestedToken/NestedToken.php
23662372

23672373
-
2368-
message: '#^Parameter \#1 \$configs of method Jose\\Bundle\\JoseFramework\\DependencyInjection\\Source\\NestedToken\\NestedTokenBuilder\:\:load\(\) expects array, mixed given\.$#'
2374+
message: '#^Parameter \#1 \$configs of method Jose\\Bundle\\JoseFramework\\DependencyInjection\\Source\\NestedToken\\NestedTokenLoader\:\:load\(\) expects array, mixed given\.$#'
23692375
identifier: argument.type
23702376
count: 1
23712377
path: src/Bundle/DependencyInjection/Source/NestedToken/NestedToken.php
@@ -3798,6 +3804,12 @@ parameters:
37983804
count: 1
37993805
path: src/Bundle/Resources/config/Algorithms/signature_experimental.php
38003806

3807+
-
3808+
message: '#^Access to constant on internal class Jose\\Component\\Core\\Util\\Ecc\\NistCurve\.$#'
3809+
identifier: classConstant.internalClass
3810+
count: 1
3811+
path: src/Bundle/Resources/config/analyzers.php
3812+
38013813
-
38023814
message: '#^Method Jose\\Bundle\\JoseFramework\\Serializer\\JWEEncoder\:\:getRecipientIndex\(\) has parameter \$context with no value type specified in iterable type array\.$#'
38033815
identifier: missingType.iterableValue
@@ -5598,6 +5610,12 @@ parameters:
55985610
count: 1
55995611
path: src/Library/Signature/Algorithm/ECDSA.php
56005612

5613+
-
5614+
message: '#^Call to internal static method ParagonIE_Sodium_Core_Ed25519\:\:publickey_from_secretkey\(\)\.$#'
5615+
identifier: staticMethod.internal
5616+
count: 1
5617+
path: src/Library/Signature/Algorithm/EdDSA.php
5618+
56015619
-
56025620
message: '#^Method Jose\\Component\\Signature\\Algorithm\\RSAPKCS1\:\:sign\(\) should return string but returns mixed\.$#'
56035621
identifier: return.type

src/Bundle/composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
"require": {
4141
"php": ">=8.2",
4242
"psr/event-dispatcher": "^1.0",
43-
"symfony/config": "^7.0",
44-
"symfony/console": "^7.0",
45-
"symfony/dependency-injection": "^7.0",
46-
"symfony/event-dispatcher": "^7.0",
43+
"symfony/config": "^7.0|^8.0",
44+
"symfony/console": "^7.0|^8.0",
45+
"symfony/dependency-injection": "^7.0|^8.0",
46+
"symfony/event-dispatcher": "^7.0|^8.0",
4747
"symfony/http-client-contracts": "^3.4",
48-
"symfony/http-kernel": "^7.0",
48+
"symfony/http-kernel": "^7.0|^8.0",
4949
"web-token/jwt-library": "^4.0"
5050
},
5151
"suggest": {

0 commit comments

Comments
 (0)