Skip to content

NEW: Add function to get public holidays list within period #1209

NEW: Add function to get public holidays list within period

NEW: Add function to get public holidays list within period #1209

Triggered via pull request December 24, 2024 09:37
Status Failure
Total duration 11m 59s
Artifacts 3

ci-on-pull_request.yml

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

Annotations

7 errors and 6 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/core/lib/date.lib.php#L1032
Function list_public_holiday() never returns int so it can be removed from the return type.
phpstan / php-stan (8.2): htdocs/core/lib/date.lib.php#L1032
Function list_public_holiday() return type has no value type specified in iterable type array.
phpstan / php-stan (8.2): htdocs/core/lib/date.lib.php#L1038
Function list_public_holiday() should return array|int but returns string.
phpstan / php-stan (8.2): htdocs/core/lib/date.lib.php#L1078
Function list_public_holiday() should return array|int but returns string.
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
pre-commit / pre-commit
Cache save failed.
phan / Run phan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phan / Run phan: htdocs/core/lib/date.lib.php#L1038
date.lib.php: PhanTypeMismatchReturnProbablyReal: Returning 'Error Dates must use same hours and must be GMT dates' of type 'Error Dates must use same hours and must be GMT dates' but list_public_holiday() is declared to return array|int (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
phan / Run phan: htdocs/core/lib/date.lib.php#L1078
date.lib.php: PhanTypeMismatchReturn: Returning ('Error sql ' . $db->lasterror()) of type string but list_public_holiday() is declared to return array|int
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 Expired
505 Bytes
phpstan-srcrt Expired
437 Bytes
precommit-logs
584 Bytes