Skip to content

Qual: Enable phan on modulebuilder #5668

Qual: Enable phan on modulebuilder

Qual: Enable phan on modulebuilder #5668

Triggered via pull request August 17, 2024 19:14
Status Failure
Total duration 3m 39s
Artifacts 2

ci.yml

on: pull_request
Matrix: phpstan / php-stan
Waiting for pending jobs
Matrix: windows-ci / win-test
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 11 warnings
pre-commit / pre-commit: htdocs/intracommreport/card.php#L329
Missing translation; $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteIntraCommReport'), $langs->trans('ConfirmDeleteObject'), 'confirm_delete', '', 0, 'action-delete');
pre-commit / pre-commit: htdocs/intracommreport/card.php#L345
Missing translation; $text = $langs->trans('ConfirmActionIntraCommReport', $object->ref);
pre-commit / pre-commit: htdocs/intracommreport/lib/intracommreport.lib.php#L100
Missing translation; $head[$h][1] = $langs->trans("IntraCommReport");
pre-commit / pre-commit: htdocs/intracommreport/card.php#L217
Missing translation; $title = $langs->trans("NewObject", $langs->transnoentitiesnoconv("IntraCommReport"));
pre-commit / pre-commit: htdocs/intracommreport/card.php#L323
Missing translation; print dol_get_fiche_head($head, 'card', $langs->trans("IntraCommReport"), -1, $object->picto, 0, '', '', 0, '', 1);
pre-commit / pre-commit: htdocs/intracommreport/card.php#L287
Missing translation; print load_fiche_titre($langs->trans("IntraCommReport"), '', 'object_'.$object->picto);
pre-commit / pre-commit: htdocs/intracommreport/card.php#L214
Missing translation; $title = $langs->trans("IntraCommReport")." - ".$langs->trans('Card');
pre-commit / pre-commit: htdocs/intracommreport/list.php#L257
Missing translation; $title = $langs->trans("IntraCommReports");
pre-commit / pre-commit: htdocs/modulebuilder/template/class/myobject.class.php#L436
Only 1 @return tag is allowed in a function comment
pre-commit / pre-commit
Process completed with exit code 1.
pre-commit / pre-commit
Process completed with exit code 1.
phan / Run phan: htdocs/modulebuilder/template/admin/setup.php#L426
setup.php: PhanUndeclaredMethod: Call to undeclared method \CommonNumRefGenerator::getNextValue
phan / Run phan: htdocs/modulebuilder/template/test/phpunit/MyObjectTest.php#L96
MyObjectTest.php: PhanCompatibleVoidTypePHP70: Return type 'void' means the absence of a return value starting in PHP 7.1. In PHP 7.0, void refers to a class/interface with the name 'void'
phan / Run phan: htdocs/modulebuilder/template/test/phpunit/MyObjectTest.php#L109
MyObjectTest.php: PhanCompatibleVoidTypePHP70: Return type 'void' means the absence of a return value starting in PHP 7.1. In PHP 7.0, void refers to a class/interface with the name 'void'
phan / Run phan: htdocs/modulebuilder/template/test/phpunit/MyObjectTest.php#L125
MyObjectTest.php: PhanCompatibleVoidTypePHP70: Return type 'void' means the absence of a return value starting in PHP 7.1. In PHP 7.0, void refers to a class/interface with the name 'void'
phan / Run phan: htdocs/modulebuilder/template/test/phpunit/MyObjectTest.php#L135
MyObjectTest.php: PhanCompatibleVoidTypePHP70: Return type 'void' means the absence of a return value starting in PHP 7.1. In PHP 7.0, void refers to a class/interface with the name 'void'
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/core/lib/intracommreport.lib.php#L30
intracommreport.lib.php: PhanRedefineFunction: Function intracommReportAdminPrepareHead defined at htdocs/core/lib/intracommreport.lib.php:30 was previously defined at htdocs/intracommreport/lib/intracommreport.lib.php:29
phan / Run phan: htdocs/core/lib/intracommreport.lib.php#L61
intracommreport.lib.php: PhanRedefineFunction: Function intracommReportPrepareHead defined at htdocs/core/lib/intracommreport.lib.php:61 was previously defined at htdocs/intracommreport/lib/intracommreport.lib.php:85
phan / Run phan: htdocs/intracommreport/card.php#L190
card.php: PhanTypeMismatchArgumentProbablyReal: Argument 4 ($id) is '' of type '' but \IntracommReport::setValueFrom() takes ?int (no real type) defined at htdocs/core/class/commonobject.class.php:2175 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/intracommreport/card.php#L537
card.php: PhanUndeclaredProperty: Reference to undeclared property \IntracommReport->socid
phan / Run phan: htdocs/intracommreport/card.php#L595
card.php: PhanTypeMismatchArgumentProbablyReal: Argument 2 ($restrictlinksto) is null of type null but \Form::showLinkToObjectBlock() takes array|string[] (no real type) defined at htdocs/core/class/html.form.class.php:9497 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
phan / Run phan: htdocs/intracommreport/class/intracommreport.class.php#L777
intracommreport.class.php: PhanUndeclaredProperty: Reference to undeclared property \IntracommReport->amount
phan / Run phan: htdocs/intracommreport/lib/intracommreport.lib.php#L29
intracommreport.lib.php: PhanRedefineFunction: Function intracommreportAdminPrepareHead defined at htdocs/intracommreport/lib/intracommreport.lib.php:29 was previously defined at htdocs/core/lib/intracommreport.lib.php:30
phan / Run phan: htdocs/intracommreport/lib/intracommreport.lib.php#L85
intracommreport.lib.php: PhanRedefineFunction: Function intracommreportPrepareHead defined at htdocs/intracommreport/lib/intracommreport.lib.php:85 was previously defined at htdocs/core/lib/intracommreport.lib.php:61
phan / Run phan: htdocs/intracommreport/list.php#L533
list.php: PhanEmptyForeach: Saw a foreach statement with empty iterable type array{}
phan / Run phan: htdocs/intracommreport/list.php#L538
list.php: PhanDeprecatedFunctionInternal: Call to deprecated function \join() (Deprecated because: DeprecateAliasPlugin marked this as an alias of implode())

Artifacts

Produced during runtime
Name Size
phan-srcrt Expired
1.56 KB
precommit-logs
5.29 KB