Skip to content

Qual: Fix phan/phpstan notices 💊 #8325

Qual: Fix phan/phpstan notices 💊

Qual: Fix phan/phpstan notices 💊 #8325

Triggered via pull request October 3, 2024 21:28
Status Failure
Total duration 18m 0s
Artifacts 3

ci.yml

on: pull_request
pre-commit  /  pre-commit
1m 50s
pre-commit / pre-commit
gh-travis  /  gh-travis
gh-travis / gh-travis
Matrix: phpstan / php-stan
Matrix: windows-ci / win-test
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 3 warnings
phan / Run phan
Process completed with exit code 1.
phan / Run phan
Process completed with exit code 1.
phpstan / php-stan (8.2): htdocs/public/test/test_buttons.php#L135
Parameter #7 $params of function dolGetButtonAction expects array{confirm?: array{url?: string, title?: string, content?: string, action-btn-label?: string, cancel-button-label?: string, modal?: bool}, attr?: array<string, mixed>, areDropdownButtons?: bool, backtopage?: string, lang?: string, enabled?: bool, perm?: int<0, 1>, label?: string, ...}, array{confirm: true} given.
phpstan / php-stan (8.2): htdocs/public/test/test_buttons.php#L174
Parameter #7 $params of function dolGetButtonAction expects array{confirm?: array{url?: string, title?: string, content?: string, action-btn-label?: string, cancel-button-label?: string, modal?: bool}, attr?: array<string, mixed>, areDropdownButtons?: bool, backtopage?: string, lang?: string, enabled?: bool, perm?: int<0, 1>, label?: string, ...}, array{confirm: true} given.
phpstan / php-stan (8.2): htdocs/ticket/class/ticket.class.php#L252
PHPDoc type Ticket of property Ticket::$oldcopy is not covariant with PHPDoc type static(CommonObject)|null of overridden property CommonObject::$oldcopy.
phpstan / php-stan (8.2)
Process completed with exit code 1.
pre-commit / pre-commit
Cache save failed.
phan / Run phan: htdocs/core/lib/functions.lib.php#L12508
functions.lib.php: PhanTypeInvalidDimOffset: Invalid offset "isDropDown" of $subbutton of array type array{attr?:mixed,urlroot:non-empty-string|string,lang:non-empty-string|string,enabled:bool,perm:bool,label:string,url:string}
phan / Run phan: htdocs/core/lib/functions.lib.php#L12605
functions.lib.php: PhanTypeInvalidDimOffset: Invalid offset "cancel-btn-label" of $params['confirm'] of array type array{url?:string,title?:string,content?:string,action-btn-label?:string,cancel-button-label?:string,modal?:bool}

Artifacts

Produced during runtime
Name Size
phan-srcrt
498 Bytes
phpstan-srcrt
607 Bytes
precommit-logs
584 Bytes