Skip to content

Fix issue n° 30845 - Resources not saved on new event creation #214

Fix issue n° 30845 - Resources not saved on new event creation

Fix issue n° 30845 - Resources not saved on new event creation #214

Triggered via pull request November 15, 2024 15:56
Status Failure
Total duration 5m 30s
Artifacts 3

ci-on-pull_request.yml

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

Annotations

12 errors and 11 warnings
phpstan / php-stan (8.2): htdocs/comm/action/card.php#L54
Variable $langs might not be defined.
phpstan / php-stan (8.2): htdocs/comm/action/card.php#L86
Parameter #1 $hour of function dol_mktime expects int, string given.
phpstan / php-stan (8.2): htdocs/comm/action/card.php#L86
Parameter #2 $minute of function dol_mktime expects int, string given.
phpstan / php-stan (8.2): htdocs/comm/action/card.php#L87
Parameter #1 $hour of function dol_mktime expects int, string given.
phpstan / php-stan (8.2): htdocs/comm/action/card.php#L87
Parameter #2 $minute of function dol_mktime expects int, string given.
phpstan / php-stan (8.2): htdocs/comm/action/card.php#L87
Parameter #3 $second of function dol_mktime expects int, string given.
phpstan / php-stan (8.2): htdocs/comm/action/card.php#L91
Parameter #3 $second of function dol_mktime expects int, string given.
phpstan / php-stan (8.2): htdocs/comm/action/card.php#L98
Parameter #4 $month of function dol_mktime expects int, string given.
phpstan / php-stan (8.2): htdocs/comm/action/card.php#L98
Parameter #5 $day of function dol_mktime expects int, string given.
phpstan / php-stan (8.2): htdocs/comm/action/card.php#L98
Parameter #6 $year of function dol_mktime expects int, string given.
phan / Run phan
Process completed with exit code 1.
phan / Run phan
Process completed with exit code 1.
pre-commit / pre-commit
Cache save failed.
phan / Run phan: htdocs/comm/action/card.php#L86
card.php: PhanTypeMismatchArgumentProbablyReal: Argument 1 ($hour) is '00' of type '00' but \dol_mktime() takes int (no real type) defined at htdocs/core/lib/functions.lib.php:3659 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/comm/action/card.php#L86
card.php: PhanTypeMismatchArgumentProbablyReal: Argument 2 ($minute) is '00' of type '00' but \dol_mktime() takes int (no real type) defined at htdocs/core/lib/functions.lib.php:3659 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/comm/action/card.php#L130
card.php: PhanPossiblyUndeclaredGlobalVariable: Global variable $ret1 is possibly undeclared
phan / Run phan: htdocs/comm/action/card.php#L326
card.php: PhanTypeMismatchArgumentProbablyReal: Argument 1 ($hour) is '00' of type '00' but \dol_mktime() takes int (no real type) defined at htdocs/core/lib/functions.lib.php:3659 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/comm/action/card.php#L326
card.php: PhanTypeMismatchArgumentProbablyReal: Argument 2 ($minute) is '00' of type '00' but \dol_mktime() takes int (no real type) defined at htdocs/core/lib/functions.lib.php:3659 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/comm/action/card.php#L326
card.php: PhanTypeMismatchArgumentProbablyReal: Argument 3 ($second) is '00' of type '00' but \dol_mktime() takes int (no real type) defined at htdocs/core/lib/functions.lib.php:3659 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/comm/action/card.php#L531
card.php: PhanPossiblyUndeclaredGlobalVariable: Global variable $listofresourceid is possibly undeclared
phan / Run phan: htdocs/comm/action/card.php#L531
card.php: PhanTypeMismatchArgumentNullableInternal: Argument 1 ($value) is $listofresourceid of type ?array|?array{}|?bool|?float|?int|?string but \count() takes \Countable|\ResourceBundle|\SimpleXMLElement|array (expected type to be non-nullable)
phan / Run phan: htdocs/comm/action/card.php#L687
card.php: PhanPossiblyUndeclaredGlobalVariable: Global variable $tzforfullday is possibly undeclared
phan / Run phan: htdocs/comm/action/card.php#L694
card.php: PhanPossiblyUndeclaredGlobalVariable: Global variable $tzforfullday is possibly undeclared

Artifacts

Produced during runtime
Name Size
phan-srcrt
1.26 KB
phpstan-srcrt
2.19 KB
precommit-logs
584 Bytes