2019-08-25 11:41:41 +08:00
|
|
|
# Magic behaviour with __get, __set, __call and __callStatic is not exactly static analyser-friendly :)
|
2020-08-06 08:50:08 +08:00
|
|
|
# Fortunately, You can ignore it by the following config.
|
2019-08-25 11:41:41 +08:00
|
|
|
#
|
2020-05-13 11:57:02 +08:00
|
|
|
|
|
|
|
parameters:
|
2020-06-17 14:45:13 +08:00
|
|
|
bootstrapFiles:
|
|
|
|
- "bootstrap.php"
|
2020-05-13 11:57:02 +08:00
|
|
|
inferPrivatePropertyTypeFromConstructor: true
|
|
|
|
treatPhpDocTypesAsCertain: true
|
2020-05-13 12:18:12 +08:00
|
|
|
reportUnmatchedIgnoredErrors: false
|
2020-05-13 11:57:02 +08:00
|
|
|
excludes_analyse:
|
|
|
|
- %currentWorkingDirectory%/src/*/tests/*
|
2020-05-29 09:47:22 +08:00
|
|
|
- %currentWorkingDirectory%/src/*/publish/*
|
|
|
|
- %currentWorkingDirectory%/src/di/src/Resolver/FactoryResolver.php
|
2020-06-01 14:01:52 +08:00
|
|
|
- %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/*
|
2020-05-13 11:57:02 +08:00
|
|
|
ignoreErrors:
|
2020-05-13 12:18:12 +08:00
|
|
|
- '#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#'
|
2020-05-25 14:47:56 +08:00
|
|
|
- '#Variable .* in isset\(\) always exists and is not nullable#'
|
2020-05-29 09:47:22 +08:00
|
|
|
- '#Static call to instance method Hyperf\\DbConnection\\Db.*#'
|
|
|
|
- '#Static call to instance method SplPriorityQueue\:\:insert\(\)#'
|
|
|
|
- '#Call to an undefined method ReflectionType::getName#'
|
2020-05-29 16:29:34 +08:00
|
|
|
- '#Call to an undefined method Traversable<mixed, mixed>\:\:getArrayCopy#'
|
2020-05-30 16:43:36 +08:00
|
|
|
- '#Unsafe usage of new static#'
|
|
|
|
- '#Method Hyperf\\Contract\\Sendable::send#'
|
|
|
|
- '#Variable .* in PHPDoc tag @var does not exist#'
|
2020-06-01 14:01:52 +08:00
|
|
|
- '#Call to an undefined method Hyperf\\DbConnection\\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#'
|
2020-06-17 14:45:13 +08:00
|
|
|
- '#Function get_debug_type invoked with 1 parameter, 0 required#'
|
|
|
|
- '#gc_status not found#'
|
2020-08-07 13:33:45 +08:00
|
|
|
- '#Call to an undefined method Hyperf\\Utils\\HigherOrderCollectionProxy::.*#'
|