fix ignored phpstan (most of expects string, int given) #5665
Annotations
2 errors and 10 warnings
Add results to PR
Process completed with exit code 1.
|
Run Phan analysis
Process completed with exit code 1.
|
Add results to PR:
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
|
Add results to PR:
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
|
Add results to PR:
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)
|
Add results to PR:
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)
|
Add results to PR:
htdocs/intracommreport/card.php#L537
card.php: PhanUndeclaredProperty: Reference to undeclared property \IntracommReport->socid
|
Add results to PR:
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)
|
Add results to PR:
htdocs/intracommreport/class/intracommreport.class.php#L777
intracommreport.class.php: PhanUndeclaredProperty: Reference to undeclared property \IntracommReport->amount
|
Add results to PR:
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
|
Add results to PR:
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
|
Add results to PR:
htdocs/intracommreport/list.php#L533
list.php: PhanEmptyForeach: Saw a foreach statement with empty iterable type array{}
|
Loading