forked from swoft-cloud/swoft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon.dist
48 lines (47 loc) · 2.76 KB
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
paths:
- %currentWorkingDirectory%/app/
autoload_files:
- %currentWorkingDirectory%/test/bootstrap.php
autoload_directories:
- %currentWorkingDirectory%/vendor/swoft/swoole-ide-helper/output/namespace/
dynamicConstantNames:
- APP_DEBUG
ignoreErrors:
# Variable type
- '#^Call to an undefined method Swoft\\Contract\\ContextInterface::get\S+\(\)\.$#'
- '#^Call to an undefined method Swoft\\Contract\\SessionInterface::push\(\)#'
# - '#^Call to an undefined method Swoft\\Session\\SessionInterface::getFd\(\)#'
- '#^Call to an undefined method Swoft\\Server\\Server::push\(\)\.$#'
# - '#^Call to an undefined method Swoft\\Server\\Server::disconnect\(\)\.$#'
- '#^Call to an undefined method\sPsr\\Http\\Message\\ServerRequestInterface::getUriPath\(\)#'
# These are ignored for now
-
path: %currentWorkingDirectory%/app/Http/Controller/DbModelController.php
message: '#^Method App\\Http\\Controller\\DbModelController::getId\(\) should return int but returns int\|null\.$#'
-
path: %currentWorkingDirectory%/app/Http/Controller/DbModelController.php
message: '#^Argument of an invalid type App\\Model\\Entity\\User supplied for foreach, only iterables are supported\.$#'
-
path: %currentWorkingDirectory%/app/Http/Controller/DbTransactionController.php
message: '#^Method App\\Http\\Controller\\DbTransactionController::getId\(\) should return int but returns int\|null\.$#'
-
path: %currentWorkingDirectory%/app/Http/Controller/RpcController.php
message: '#^Unreachable statement - code above always terminates\.$#'
-
path: %currentWorkingDirectory%/app/Http/Controller/SelectDbController.php
message: '#^Method App\\Http\\Controller\\SelectDbController::getId\(\) should return int but returns int\|null\.$#'
-
path: %currentWorkingDirectory%/app/Http/Controller/ValidatorController.php
message: '#^Method App\\Http\\Controller\\ValidatorController::(validateAll|validateType|validatePassword|validateCustomer)\(\) should return array but returns array\|object\|null\.$#'
-
path: %currentWorkingDirectory%/app/Task/Task/SyncTask.php
message: '#^Method App\\Task\\Task\\SyncTask::testNull\(\) should return bool but returns null\.$#'
-
path: %currentWorkingDirectory%/app/Validator/Rule/AlphaDashRule.php
message: '#^Call to an undefined method object::getMessage\(\)\.$#'