Skip to content

fix phpstan

fix phpstan #796

Triggered via pull request December 3, 2024 20:18
Status Failure
Total duration 12m 57s
Artifacts 3

ci-on-pull_request.yml

on: pull_request
pre-commit  /  pre-commit
2m 12s
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 3 warnings
phpstan / php-stan (8.2): htdocs/comm/action/class/ical.class.php#L392
Parameter #7 $gm of function dol_mktime expects int|string, true given.
phpstan / php-stan (8.2): htdocs/comm/action/index.php#L1088
Parameter #7 $gm of function dol_mktime expects int|string, true given.
phpstan / php-stan (8.2): htdocs/core/lib/functions.lib.php#L3495
Parameter #7 $gm of function dol_mktime expects int|string, true given.
phpstan / php-stan (8.2): htdocs/holiday/card.php#L509
If condition is always false.
phpstan / php-stan (8.2): htdocs/holiday/card.php#L552
Variable $endhalfdaykey might not be defined.
phpstan / php-stan (8.2): htdocs/holiday/card.php#L552
Variable $starthalfdaykey might not be defined.
phpstan / php-stan (8.2): htdocs/holiday/card.php#L1284
Variable $canread might not be defined.
phpstan / php-stan (8.2): htdocs/holiday/card.php#L1656
If condition is always false.
phpstan / php-stan (8.2): htdocs/multicurrency/class/multicurrency.class.php#L541
Parameter #7 $gm of function dol_mktime expects int|string, true given.
phpstan / php-stan (8.2)
Process completed with exit code 1.
pre-commit / pre-commit
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phan / Run phan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpstan / php-stan (8.2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

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