26 Star 124 Fork 16

hunzhiwange / QueryPHP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
phpstan.neon.dist 3.83 KB
一键复制 编辑 原始数据 按行查看 历史
小牛New 提交于 2024-01-28 21:13 . 修复所有警告
parameters:
level: 9
paths:
- app
- config
- assets/database
- tests
bootstrapFiles:
- %currentWorkingDirectory%/assets/phpstan/bootstrap.php
cache:
nodesByStringCountMax: 128
checkUninitializedProperties: true
checkMissingCallableSignature: true
checkGenericClassInNonGenericObjectType: false
excludePaths:
- %currentWorkingDirectory%/*Test.php
- %currentWorkingDirectory%/app/X
ignoreErrors:
- '#Access to an undefined property [\S\s]+::\$[\S\s]+\.#'
- '#should return [\S\s]+ but returns Leevel\\Database\\Ddd\\Entity\.#'
- '#should return [\S\s]+ but returns Leevel\\Database\\Ddd\\Repository\.#'
- '#Property [\S\s]+ does not accept Leevel\\Database\\Ddd\\Entity\.#'
- '#Parameter [\S\s]+ of method [\S\s]+ expects [\S\s]+, [\S\s]+ given\.#'
- '#no value type specified in iterable type array\.#'
- '#no signature specified for Closure\.#'
- '#Cannot call method [\S\s]+ on Leevel\\Support\\[\S\s]+\|null\.#'
- '#Cannot call method withProps\(\) on [\S\s]+\|null\.#'
- '#Argument of an invalid type Leevel\\Support\\TypedIntArray\|null supplied for foreach, only iterables are supported\.#'
- '#Cannot access property \$[\S\s]+ on [\S\s]+\|null\.#'
- '#Cannot access offset [\S\s]+ on mixed\.#'
- '#Cannot cast mixed to[\S\s]+\.#'
- '#Cannot access property [\S\s]+ on mixed\.#'
- '#[\S\s]+ throws checked exception Error but [\S\s]+ missing from the PHPDoc @throws tag\.#'
- '#Class [\S\s]+ has an uninitialized property [\S\s]+. Give it default value or assign it in the constructor\.#'
- '#[\S\s]+ with no signature specified for callable\.#'
- '#Unsafe usage of new static\(\)\.#'
- '#Access to protected property App\\[\S\s]+\\Entity\\[\S\s]+\.#'
- '#Method [\S\s]+ should return Leevel\\Support\\Collection but returns array|Leevel\\Support\\Collection\\.#'
- '#Cannot call method toArray\(\) on[\S\s]+\\.#'
- '#Parameter [\S\s]+ [\S\s]+ of function count expects array|Countable, [\S\s]+ given\\.#'
- '#has [\S\s]+ in PHPDoc @throws tag but it[\S\s]+ not thrown\\.#'
- '#[\S\s]+is unused\\.#'
- '#[\S\s]+but [\S\s]+ missing from the PHPDoc @throws tag\\.#'
- '#Parameter [\S\s]+ of [\S\s]+ expects [\S\s]+, [\S\s]+ given\.#'
- '#[\S\s]+is unused\.#'
- '#[\S\s]+is never read, only written\.#'
- '#Cannot call method get\(\) on string\.#'
- '#[\S\s]+Swoole[\S\s]+\.#'
exceptions:
uncheckedExceptionClasses:
- 'PHPStan\ShouldNotHappenException'
- 'Symfony\Component\Console\Exception\InvalidArgumentException'
- 'PHPStan\BetterReflection\SourceLocator\Exception\InvalidFileLocation'
- 'PHPStan\BetterReflection\SourceLocator\Exception\InvalidArgumentException'
- 'Symfony\Component\Finder\Exception\DirectoryNotFoundException'
- 'InvalidArgumentException'
- 'PHPStan\DependencyInjection\ParameterNotFoundException'
- 'PHPStan\Analyser\UndefinedVariableException'
- 'RuntimeException'
- 'Exception'
- 'Nette\Neon\Exception'
- 'Nette\Utils\JsonException'
- 'PHPStan\File\CouldNotReadFileException'
- 'PHPStan\File\CouldNotWriteFileException'
- 'PHPStan\Parser\ParserErrorsException'
- 'ReflectionException'
- 'Nette\Utils\AssertionException'
- 'PHPStan\File\PathNotFoundException'
- 'PHPStan\Broker\ClassNotFoundException'
- 'PHPStan\Broker\FunctionNotFoundException'
- 'PHPStan\Broker\ConstantNotFoundException'
- 'PHPStan\Reflection\MissingMethodFromReflectionException'
- 'PHPStan\Reflection\MissingPropertyFromReflectionException'
- 'PHPStan\Reflection\MissingConstantFromReflectionException'
- 'PHPStan\Type\CircularTypeAliasDefinitionException'
- 'PHPStan\Broker\ClassAutoloadingException'
- 'LogicException'
- 'TypeError'
- 'DivisionByZeroError'
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
reportStaticMethodSignatures: true
tmpDir: %rootDir%/../../storage/phpstan
reportUnmatchedIgnoredErrors: false
PHP
1
https://gitee.com/dyhb/queryphp.git
git@gitee.com:dyhb/queryphp.git
dyhb
queryphp
QueryPHP
master

搜索帮助