Skip to content

fix phpstan doc ui #531

fix phpstan doc ui

fix phpstan doc ui #531

Triggered via pull request November 23, 2024 10:07
Status Failure
Total duration 6m 24s
Artifacts 3

ci-on-pull_request.yml

on: pull_request
pre-commit  /  pre-commit
1m 44s
pre-commit / pre-commit
Matrix: phpstan / php-stan
gh-travis  /  gh-travis
gh-travis / gh-travis
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
phpstan / php-stan (8.2): htdocs/admin/tools/ui/class/documentation.class.php#L35
Property Documentation::$view type has no value type specified in iterable type array.
phpstan / php-stan (8.2): htdocs/admin/tools/ui/class/documentation.class.php#L42
Property Documentation::$menu type has no value type specified in iterable type array.
phpstan / php-stan (8.2): htdocs/admin/tools/ui/class/documentation.class.php#L49
Property Documentation::$summary type has no value type specified in iterable type array.
phpstan / php-stan (8.2): htdocs/admin/tools/ui/class/documentation.class.php#L178
Method Documentation::setMenu() should return mixed but return statement is missing.
phpstan / php-stan (8.2): htdocs/admin/tools/ui/class/documentation.class.php#L260
Method Documentation::displayMenu() has parameter $menu with no value type specified in iterable type array.
phpstan / php-stan (8.2): htdocs/admin/tools/ui/class/documentation.class.php#L356
Method Documentation::displaySummary() has parameter $menu with no value type specified in iterable type array.
phpstan / php-stan (8.2): htdocs/admin/tools/ui/class/documentation.class.php#L393
Method Documentation::showCode() has parameter $lines with no value type specified in iterable type array.
phpstan / php-stan (8.2): htdocs/admin/tools/ui/components/buttons.php#L153
Parameter #7 $params of function dolGetButtonAction expects array{confirm?: array{url?: string, title?: string, content?: string, action-btn-label?: string, cancel-btn-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/admin/tools/ui/components/buttons.php#L179
Parameter #7 $params of function dolGetButtonAction expects array{confirm?: array{url?: string, title?: string, content?: string, action-btn-label?: string, cancel-btn-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/admin/tools/ui/components/buttons.php#L231
Parameter #4 $url of function dolGetButtonAction expects array<int, array{lang: string, enabled: bool, perm: bool, label: string, url: string, urlroot?: string, isDropDown?: int<0, 1>}>|string, array{array{lang: 'documentation…', url: non-falsy-string, label: 'My SubAction 1', perm: 1}, array{lang: 'documentation…', url: non-falsy-string, label: 'My SubAction 2', perm: 0}} given.
pre-commit / pre-commit
Cache save failed.

Artifacts

Produced during runtime
Name Size
phan-srcrt
199 Bytes
phpstan-srcrt
862 Bytes
precommit-logs
584 Bytes