代码拉取完成,页面将自动刷新
parameters:
level: 9
paths:
- app
- config
- database
- tests
bootstrapFiles:
- %currentWorkingDirectory%/phpstan-bootstrap.php
cache:
nodesByStringCountMax: 128
checkUninitializedProperties: true
checkMissingCallableSignature: true
checkGenericClassInNonGenericObjectType: false
excludePaths:
- %currentWorkingDirectory%/*Test.php
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]+\.#'
- '#[\S\s]+throws checked exception ValueError but it\''s missing from the PHPDoc @throws tag\.#'
- '#Constructor of class [\S\s]+ has an unused parameter [\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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。