Skip to content

fix ignored phpstan (most of expects string, int given) #5665

fix ignored phpstan (most of expects string, int given)

fix ignored phpstan (most of expects string, int given) #5665

Triggered via pull request August 17, 2024 18:01
Status Failure
Total duration 3m 24s
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

11 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
Process completed with exit code 1.
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#L473
card.php: PhanTypeMismatchArgumentProbablyReal: Argument 3 ($buyer) is null of type null but \IntracommReport::printObjectLines() takes \Societe (no real type) defined at htdocs/core/class/commonobject.class.php:5179 (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{}

Artifacts

Produced during runtime
Name Size
phan-srcrt Expired
988 Bytes
precommit-logs
4.61 KB