Skip to content

Commit 6217236

Browse files
authored
Merge pull request #761 from driehle/upgrade-phpstan
Upgraded PHPStan from 1.12 to 2.0
2 parents 36ab999 + da6a83d commit 6217236

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"laminas/laminas-log": "^2.15.0",
4141
"laminas/laminas-serializer": "^2.12.0",
4242
"ocramius/proxy-manager": "^2.2.0",
43-
"phpstan/phpstan": "^1.4.6",
44-
"phpstan/phpstan-phpunit": "^1.0.0",
43+
"phpstan/phpstan": "^2.0.4",
44+
"phpstan/phpstan-phpunit": "^2.0.3",
4545
"phpunit/phpunit": "^10.5.40",
4646
"squizlabs/php_codesniffer": "^3.6.2"
4747
},

phpstan.neon

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,28 @@ parameters:
33
paths:
44
- src
55
- tests
6-
checkGenericClassInNonGenericObjectType: false
76
treatPhpDocTypesAsCertain: false
87
ignoreErrors:
98
-
10-
message: '#Offset mixed on array\{\} in isset\(\) does not exist#'
11-
path: src/Yuml/MetadataGrapher.php
9+
identifier: missingType.generics
1210
-
13-
message: '#Return type .* of method DoctrineORMModule\\Yuml\\YumlController::indexAction\(\)#'
14-
path: src/Yuml/YumlController.php
11+
identifier: method.alreadyNarrowedType
1512
-
16-
message: '#Parameter \#1 .* of method DoctrineORMModule\\Options\\Configuration.* stdClass given#'
17-
path: tests/Options/ConfigurationOptionsTest.php
13+
identifier: function.alreadyNarrowedType
14+
-
15+
message: '#Method .*CliConfigurator::getHelpers\(\) .*ConnectionHelper#'
16+
path: src/CliConfigurator.php
17+
-
18+
message: '#Method .*DBALConnection::getDriverClass\(\) never returns null#'
19+
path: src/Options/DBALConnection.php
20+
-
21+
message: '#Offset mixed on array\{\} in isset\(\) does not exist#'
22+
path: src/Yuml/MetadataGrapher.php
23+
-
24+
message: '#Return type .* of method DoctrineORMModule\\Yuml\\YumlController::indexAction\(\)#'
25+
path: src/Yuml/YumlController.php
26+
-
27+
message: '#Parameter \#1 .* of method DoctrineORMModule\\Options\\Configuration.* stdClass given#'
28+
path: tests/Options/ConfigurationOptionsTest.php
1829
includes:
1930
- vendor/phpstan/phpstan-phpunit/extension.neon

0 commit comments

Comments
 (0)