fix phpstan doc ui #531
Annotations
10 errors
Run PHPStan:
htdocs/admin/tools/ui/class/documentation.class.php#L35
Property Documentation::$view type has no value type specified in iterable type array.
|
Run PHPStan:
htdocs/admin/tools/ui/class/documentation.class.php#L42
Property Documentation::$menu type has no value type specified in iterable type array.
|
Run PHPStan:
htdocs/admin/tools/ui/class/documentation.class.php#L49
Property Documentation::$summary type has no value type specified in iterable type array.
|
Run PHPStan:
htdocs/admin/tools/ui/class/documentation.class.php#L178
Method Documentation::setMenu() should return mixed but return statement is missing.
|
Run PHPStan:
htdocs/admin/tools/ui/class/documentation.class.php#L260
Method Documentation::displayMenu() has parameter $menu with no value type specified in iterable type array.
|
Run PHPStan:
htdocs/admin/tools/ui/class/documentation.class.php#L356
Method Documentation::displaySummary() has parameter $menu with no value type specified in iterable type array.
|
Run PHPStan:
htdocs/admin/tools/ui/class/documentation.class.php#L393
Method Documentation::showCode() has parameter $lines with no value type specified in iterable type array.
|
Run PHPStan:
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.
|
Run PHPStan:
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.
|
Run PHPStan:
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.
|
Loading