1 Star 0 Fork 160

一辈子那么长 / hyperf

forked from hyperf / hyperf 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
phpstan.neon 2.32 KB
一键复制 编辑 原始数据 按行查看 历史
# Magic behaviour with __get, __set, __call and __callStatic is not exactly static analyser-friendly :)
# Fortunately, You can ignore it by the following config.
#
parameters:
bootstrapFiles:
- "bootstrap.php"
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: true
reportUnmatchedIgnoredErrors: false
excludes_analyse:
- %currentWorkingDirectory%/src/*/tests/*
- %currentWorkingDirectory%/src/*/publish/*
- %currentWorkingDirectory%/src/di/src/Resolver/FactoryResolver.php
- %currentWorkingDirectory%/src/circuit-breaker/*
- %currentWorkingDirectory%/src/config-zookeeper/*
- %currentWorkingDirectory%/src/contract/*
- %currentWorkingDirectory%/src/crontab/*
- %currentWorkingDirectory%/src/database/*
- %currentWorkingDirectory%/src/graphql/*
- %currentWorkingDirectory%/src/grpc/*
- %currentWorkingDirectory%/src/grpc-server/*
- %currentWorkingDirectory%/src/swagger/*
- %currentWorkingDirectory%/src/validation/*
- %currentWorkingDirectory%/src/view/*
ignoreErrors:
- '#side of && is always#'
- '#method Redis::zRevRangeByScore\(\) expects int, string given#'
- '#Argument of an invalid type Hyperf\\AsyncQueue\\Job supplied for foreach, only iterables are supported#'
- '#Variable .* in isset\(\) always exists and is not nullable#'
- '#Static call to instance method Hyperf\\DbConnection\\Db.*#'
- '#Static call to instance method SplPriorityQueue\:\:insert\(\)#'
- '#Call to an undefined method ReflectionType::getName#'
- '#Call to an undefined method Traversable<mixed, mixed>\:\:getArrayCopy#'
- '#Unsafe usage of new static#'
- '#Method Hyperf\\Contract\\Sendable::send#'
- '#Variable .* in PHPDoc tag @var does not exist#'
- '#Call to an undefined method Hyperf\\Database\\Model\\Model::hydrate#'
- '#PHPDoc tag @param has invalid value#'
- '#Static call to instance method Hyperf\\RpcServer\\Router\\Router::#'
- '#Method Hyperf\\Utils\\Serializer\\ScalarNormalizer::denormalize\(\) should return array\|object but returns#'
- '#Function get_debug_type invoked with 1 parameter, 0 required#'
- '#gc_status not found#'
- '#Call to an undefined method Hyperf\\Utils\\HigherOrderCollectionProxy::.*#'
- '#Used function getSwooleTracker.* not found#'
- '#Function getSwooleTracker.* not found#'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/alone88/hyperf.git
git@gitee.com:alone88/hyperf.git
alone88
hyperf
hyperf
master

搜索帮助