Skip to content

Commit 9e568d3

Browse files
Use explicit composer constraints and soft-finalize classes instead of ignoring psalm warnings
Signed-off-by: pascal.heidmann <[email protected]>
1 parent a9bc367 commit 9e568d3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
"extra": {
2424
},
2525
"require": {
26-
"php": "^8.1.0",
26+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
2727
"laminas/laminas-config-aggregator": "^1.13",
2828
"laminas/laminas-stdlib": "^3.17",
2929
"symfony/dependency-injection": "^6.2.8 || ^7.0"
3030
},
3131
"require-dev": {
32-
"laminas/laminas-coding-standard": "^3.0",
33-
"laminas/laminas-config": "^3.8.0",
34-
"phpunit/phpunit": "^10.5 || ^11.0 || ^12.0",
35-
"psalm/plugin-phpunit": "^0.19.2",
36-
"vimeo/psalm": "^6.9"
32+
"laminas/laminas-coding-standard": "^3.1",
33+
"laminas/laminas-config": "^3.10.1",
34+
"phpunit/phpunit": "^10.5.46",
35+
"psalm/plugin-phpunit": "^0.19.5",
36+
"vimeo/psalm": "^6.12"
3737
},
3838
"autoload": {
3939
"psr-4": {

src/ParameterNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use function sprintf;
1212

1313
/**
14-
* @psalm-suppress ClassMustBeFinal
14+
* @final
1515
*/
1616
class ParameterNotFoundException extends InvalidArgumentException
1717
{

src/ParameterPostProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @template TParameters of array<string,mixed>
1616
* @psalm-type ProcessedConfig=array<string,mixed>&array{parameters:array<string,mixed>}
17-
* @psalm-suppress ClassMustBeFinal
17+
* @final
1818
*/
1919
class ParameterPostProcessor
2020
{

0 commit comments

Comments
 (0)