fix phpstan lvl 9 bugs

This commit is contained in:
Dennis Eichhorn 2022-12-26 20:52:57 +01:00
parent c107b326a4
commit e1b38be6ec
2 changed files with 3 additions and 1 deletions

View File

@ -55,6 +55,8 @@ parameters:
- '#expects phpOMS\\Algorithm\\PathFinding\\JumpPointNode\|null, phpOMS\\Algorithm\\PathFinding\\Node\|null given#'
- '#should return array<phpOMS\\Algorithm\\PathFinding\\Node> but returns array<int, phpOMS\\Algorithm\\PathFinding\\Node\|null#'
- '#^Offset .* does not exist on array.*#'
- '#.* mixed given.*#'
- '#.*call method getData\(\) on mixed.*#'
- '#.*refClass with generic class ReflectionClass but does not specify its types.*#'
- '#.*Cannot cast mixed to.*#'
- '#.*Instantiated class .*\\WorkflowInstance.*#'

View File

@ -16,7 +16,7 @@ printf "\nPHPCS checks\n\n"
./vendor/bin/phpcs --severity=1 ./ --standard="Build/Config/phpcs.xml"
printf "\nPHPStan checks\n\n"
./vendor/bin/phpstan analyse --autoload-file=phpOMS/Autoloader.php -l 8 -c Build/Config/phpstan.neon ./
./vendor/bin/phpstan analyse --autoload-file=phpOMS/Autoloader.php -l 9 -c Build/Config/phpstan.neon ./
printf "\nESlint checks\n\n"
npx eslint jsOMS/ -c Build/Config/.eslintrc.json