当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 1 Fork 132

AnnOS / swoft
暂停

forked from swoft / swoft 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
phpstan.neon.dist 2.72 KB
一键复制 编辑 原始数据 按行查看 历史
inhere 提交于 2019-09-23 18:36 . fix: phpstan check error
includes:
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
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\(\)\.$#'
PHP
1
https://gitee.com/AnnOS/swoft.git
git@gitee.com:AnnOS/swoft.git
AnnOS
swoft
swoft
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891