Skip to content

Commit 02b361f

Browse files
authored
Latest PHPStan, extra strictness enabled (#101)
1 parent eb7e0fb commit 02b361f

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"doctrine/event-manager": "^2.0",
1616
"editorconfig-checker/editorconfig-checker": "^10.5.0",
1717
"ergebnis/composer-normalize": "^2.42",
18-
"phpstan/phpstan": "^1.10.59",
19-
"phpstan/phpstan-phpunit": "^1.3.15",
20-
"phpstan/phpstan-strict-rules": "^1.5.2",
18+
"phpstan/phpstan": "^1.11.1",
19+
"phpstan/phpstan-phpunit": "^1.4.0",
20+
"phpstan/phpstan-strict-rules": "^1.6.0",
2121
"phpunit/phpunit": "^10.5.11",
2222
"shipmonk/composer-dependency-analyser": "^1.2.1",
23-
"shipmonk/phpstan-rules": "^2.11.2",
23+
"shipmonk/phpstan-rules": "^3.0.0",
2424
"slevomat/coding-standard": "^8.15.0"
2525
},
2626
"autoload": {

composer.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon.dist

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ parameters:
1212
- src
1313
- tests
1414
tmpDir: cache/phpstan/
15-
checkMissingCallableSignature: true
15+
checkImplicitMixed: true
16+
checkBenevolentUnionTypes: true
1617
checkUninitializedProperties: true
18+
checkMissingCallableSignature: true
1719
checkTooWideReturnTypesInProtectedAndPublicMethods: true
20+
reportAnyTypeWideningInVarTag: true
21+
reportPossiblyNonexistentConstantArrayOffset: true
22+
reportPossiblyNonexistentGeneralArrayOffset: true
1823

1924
shipmonkRules:
2025
enforceReadonlyPublicProperty:

0 commit comments

Comments
 (0)