mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-19 07:18:40 +00:00
fix phpstan lvl 9 bugs
This commit is contained in:
parent
c107b326a4
commit
e1b38be6ec
|
|
@ -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.*#'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue
Block a user