Skip to content

FIX warning for too many %s #10

FIX warning for too many %s

FIX warning for too many %s #10

Triggered via push July 24, 2025 09:48
Status Failure
Total duration 16m 34s
Artifacts 3

ci-on-push.yml

on: push
pre-commit  /  pre-commit
5m 45s
pre-commit / pre-commit
Matrix: phpstan / php-stan
gh-travis  /  gh-travis
gh-travis / gh-travis
Matrix: windows-ci / win-test
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 9 warnings
phan / Run phan
Process completed with exit code 1.
phan / Run phan
Process completed with exit code 1.
phpstan / php-stan (8.2)
Process completed with exit code 1.
phpstan / php-stan (8.2): htdocs/core/customreports.php#L170
Array has 2 duplicate keys with value 'langs' ('langs', 'langs').
phpstan / php-stan (8.2): htdocs/core/customreports.php#L169
Array has 2 duplicate keys with value 'langs' ('langs', 'langs').
phpstan / php-stan (8.2): htdocs/comm/action/peruser.php#L2524
Ternary operator condition is always true.
phpstan / php-stan (8.2): htdocs/comm/action/peruser.php#L534
Ignored error pattern #^Ternary operator condition is always true\.$# (ternary.alwaysTrue) in path /home/runner/work/dolibarr/dolibarr/htdocs/comm/action/peruser.php is expected to occur 4 times, but occurred 5 times.
phan / Run phan: htdocs/core/customreports.php#L170
customreports.php: PhanPluginDuplicateArrayKey: Duplicate/Equivalent array key value('langs') detected in array - the earlier entry 'langs' at line 170 will be ignored.
phan / Run phan: htdocs/core/customreports.php#L169
customreports.php: PhanPluginDuplicateArrayKey: Duplicate/Equivalent array key value('langs') detected in array - the earlier entry 'langs' at line 169 will be ignored.
phan / Run phan: htdocs/comm/action/peruser.php#L826
peruser.php: PhanTypeMismatchArgumentProbablyReal: Argument 1 ($addcurrentuser) is 'hierarchyme' of type 'hierarchyme' but \User::getAllChildIds() takes int (no real type) defined at htdocs/user/class/user.class.php:3984 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/comm/action/peruser.php#L704
peruser.php: PhanTypeMismatchArgumentProbablyReal: Argument 1 ($addcurrentuser) is 'hierarchyme' of type 'hierarchyme' but \User::getAllChildIds() takes int (no real type) defined at htdocs/user/class/user.class.php:3984 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/comm/action/pertype.php#L680
pertype.php: PhanTypeMismatchArgumentProbablyReal: Argument 1 ($addcurrentuser) is 'hierarchyme' of type 'hierarchyme' but \User::getAllChildIds() takes int (no real type) defined at htdocs/user/class/user.class.php:3984 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/comm/action/pertype.php#L558
pertype.php: PhanTypeMismatchArgumentProbablyReal: Argument 1 ($addcurrentuser) is 'hierarchyme' of type 'hierarchyme' but \User::getAllChildIds() takes int (no real type) defined at htdocs/user/class/user.class.php:3984 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/comm/action/list.php#L471
list.php: PhanTypeMismatchArgumentProbablyReal: Argument 1 ($addcurrentuser) is 'hierarchyme' of type 'hierarchyme' but \User::getAllChildIds() takes int (no real type) defined at htdocs/user/class/user.class.php:3984 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/comm/action/index.php#L2362
index.php: PhanTypeMismatchArgumentInternal: Argument 1 ($string) is $usergroup of type non-zero-int but \urlencode() takes string
phan / Run phan: htdocs/comm/action/index.php#L776
index.php: PhanTypeMismatchArgumentProbablyReal: Argument 1 ($addcurrentuser) is 'hierarchyme' of type 'hierarchyme' but \User::getAllChildIds() takes int (no real type) defined at htdocs/user/class/user.class.php:3984 (the inferred real argument type has nothing in common with the parameter's phpdoc type)

Artifacts

Produced during runtime
Name Size Digest
phan-srcrt Expired
712 Bytes
sha256:8e2def1df24154b69e25b31ff8b1ccce91bc119ae5deecc618212ce4a8d445e7
phpstan-srcrt Expired
505 Bytes
sha256:de6f364e47cdbcdfec9d6de290af70903048a0c4b1dd9290bc57be7f9f251aed
precommit-logs Expired
863 Bytes
sha256:d9ee282293d9f9a3b74bbd870113e3fd50a2f9a77d7809d805f0db6880d195b1