[TOOLS] Fix errors reported by PHPStan at level 4

This commit is contained in:
2021-12-26 22:17:26 +00:00
parent edd996d281
commit b84315c95b
19 changed files with 75 additions and 66 deletions

View File

@@ -1,5 +1,5 @@
parameters:
level: 3
level: 4
bootstrapFiles:
- config/bootstrap.php
paths:
@@ -9,6 +9,7 @@ parameters:
- plugins
excludePaths:
- plugins/ActivityPub
- plugins/Poll
- components/FreeNetwork
earlyTerminatingMethodCalls:
App\Core\Log:
@@ -18,6 +19,11 @@ parameters:
message: '/Access to an undefined property App\\Util\\Bitmap::\$\w+/'
paths:
- *
-
message: '/^Property App\\PHPStan\\ClassFromTableNameDynamicStaticMethodReturnTypeExtension::\$provider is never read, only written\./'
path: src/PHPStan/ClassFromTableNameDynamicStaticMethodReturnTypeExtension.php
# -
# message: '/has no return typehint specified/'
# paths: