2021-09-07 04:58:21 +09:00
|
|
|
parameters:
|
2022-10-20 06:39:17 +09:00
|
|
|
level: 6
|
|
|
|
tmpDir: /var/www/social/var/cache/phpstan
|
|
|
|
inferPrivatePropertyTypeFromConstructor: true
|
2021-09-07 04:58:21 +09:00
|
|
|
bootstrapFiles:
|
|
|
|
- config/bootstrap.php
|
2021-09-13 21:52:44 +09:00
|
|
|
paths:
|
|
|
|
- src
|
|
|
|
- tests
|
|
|
|
- components
|
|
|
|
- plugins
|
2021-11-26 05:08:11 +09:00
|
|
|
excludePaths:
|
|
|
|
- plugins/ActivityPub
|
2021-12-27 07:17:26 +09:00
|
|
|
- plugins/Poll
|
2021-11-26 05:08:11 +09:00
|
|
|
- components/FreeNetwork
|
2022-01-09 23:44:08 +09:00
|
|
|
- tests/CodeCeption/_support/
|
2021-09-07 04:58:21 +09:00
|
|
|
earlyTerminatingMethodCalls:
|
|
|
|
App\Core\Log:
|
2021-09-07 07:47:28 +09:00
|
|
|
- unexpected_exception
|
2022-10-20 06:39:17 +09:00
|
|
|
typeAliases:
|
2022-10-20 06:39:17 +09:00
|
|
|
ControllerResultType: '(array{_template: string} | array{_redirect: string}) & array<string, mixed>'
|
2022-10-20 06:39:17 +09:00
|
|
|
CacheKeysType: 'array<string, string>'
|
|
|
|
SettingsTabsType: 'array<array{title: string, desc: string, id: string, controller: ControllerResultType}>'
|
|
|
|
OrderByType: "'ASC' | 'DESC' | 'asc' | 'desc'"
|
2022-10-20 06:39:17 +09:00
|
|
|
ModuleVersionType: 'array{name: string, version: string, author: string, rawdescription: string}'
|
2022-10-20 06:39:17 +09:00
|
|
|
|
2021-09-07 07:47:28 +09:00
|
|
|
ignoreErrors:
|
|
|
|
-
|
|
|
|
message: '/Access to an undefined property App\\Util\\Bitmap::\$\w+/'
|
|
|
|
paths:
|
|
|
|
- *
|
2021-12-27 07:17:26 +09:00
|
|
|
|
|
|
|
-
|
|
|
|
message: '/^Property App\\PHPStan\\ClassFromTableNameDynamicStaticMethodReturnTypeExtension::\$provider is never read, only written\./'
|
|
|
|
path: src/PHPStan/ClassFromTableNameDynamicStaticMethodReturnTypeExtension.php
|
|
|
|
|
2022-01-11 08:14:43 +09:00
|
|
|
-
|
2022-01-17 04:29:47 +09:00
|
|
|
message: '/Parameter \$I of method [a-zA-Z]+::[a-zA-Z_]+\(\) has invalid type AcceptanceTester\./'
|
|
|
|
paths:
|
|
|
|
- *
|
|
|
|
|
|
|
|
-
|
|
|
|
message: '/Call to method [a-zA-Z]+\(\) on an unknown class AcceptanceTester\./'
|
2022-01-11 08:14:43 +09:00
|
|
|
paths:
|
|
|
|
- *
|
|
|
|
|
2022-10-20 06:39:17 +09:00
|
|
|
-
|
|
|
|
message: '/::onCollectionQueryCreateExpression\(\) has parameter \$(actor|note)_expr with no type specified\./'
|
|
|
|
paths:
|
|
|
|
- *
|
|
|
|
|
|
|
|
-
|
|
|
|
message: '/::schemaDef\(\) return type has no value type specified in iterable type array\./'
|
|
|
|
paths:
|
|
|
|
- *
|
|
|
|
|
|
|
|
-
|
|
|
|
message: '/has no return type specified\./'
|
|
|
|
paths:
|
|
|
|
- *
|
|
|
|
|
|
|
|
-
|
|
|
|
message: '/with no value type specified in iterable type (array|iterable)\.|type has no value type specified in iterable type (array|iterable)\./'
|
|
|
|
paths:
|
|
|
|
- *
|
|
|
|
|
|
|
|
-
|
|
|
|
message: '/never returns array{_redirect: string} so it can be removed from the return type\./'
|
|
|
|
paths:
|
|
|
|
- *
|
|
|
|
|
|
|
|
-
|
|
|
|
message: '/but returns array<string, array<int, mixed>\|string>\./'
|
|
|
|
paths:
|
|
|
|
- plugins/AttachmentCollections/Controller/AttachmentCollections.php
|
|
|
|
- plugins/Bundles/Controller/BundleCollection.php
|
|
|
|
|
|
|
|
-
|
|
|
|
message: '/has parameter \$.+ with no type specified./'
|
|
|
|
paths:
|
|
|
|
- tests/*
|
2021-09-08 05:16:47 +09:00
|
|
|
|
|
|
|
services:
|
|
|
|
-
|
|
|
|
class: App\PHPStan\ClassFromTableNameDynamicStaticMethodReturnTypeExtension
|
|
|
|
tags:
|
|
|
|
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
|
|
|
|
|
|
|
|
-
|
2021-09-09 04:37:33 +09:00
|
|
|
class: App\PHPStan\GNUsocialProvider
|