Skip to content

PHPStan baseline

PHPStan baseline #34

Triggered via schedule December 20, 2024 12:32
Status Failure
Total duration 10m 44s
Artifacts

phpstan_baseline.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: htdocs/accountancy/class/accountingjournal.class.php#L465
Call to function array_key_exists() with 'error' and array{ref: mixed, label: mixed, acquisition_value_ht: mixed, depreciation: non-empty-array<array{date: mixed, ref: mixed, lines: non-empty-array<mixed>}>, disposal?: array{date: mixed, amount: mixed, subject_to_vat: bool}} will always evaluate to false.
phpstan: htdocs/accountancy/class/lettering.class.php#L909
Parameter #1 $link_by_element of method Lettering::getGroupElements() expects array<array<string, int>>, array<array<string, string>> given.
phpstan: htdocs/adherents/class/adherent.class.php#L3232
Call to function is_array() with array will always evaluate to true.
phpstan: htdocs/categories/class/categorie.class.php#L1290
Property Categorie::$cats (array<int, array{rowid: int, id: int, fk_parent: int, label: string, description: string, color: string, position: string, visible: int, ...}>) does not accept array<array{rowid: mixed, id: mixed, fk_parent: mixed, label: mixed, description: mixed, color: mixed, position: mixed, visible: mixed, ...}>.
phpstan: htdocs/categories/class/categorie.class.php#L1290
Property Categorie::$cats (array<int, array{rowid: int, id: int, fk_parent: int, label: string, description: string, color: string, position: string, visible: int, ...}>) does not accept array<array{rowid: mixed, id: mixed, fk_parent: mixed, label: mixed, description: mixed, color: mixed, position: mixed, visible: mixed, ...}>.
phpstan: htdocs/categories/class/categorie.class.php#L1292
Method Categorie::get_full_arbo() should return -1|array<int, array{rowid: int, id: int, fk_parent: int, label: string, description: string, color: string, position: string, visible: int, ...}> but returns array<array{rowid: mixed, id: mixed, fk_parent: mixed, label: mixed, description: mixed, color: mixed, position: mixed, visible: mixed, ...}>.
phpstan: htdocs/compta/cashcontrol/report.php#L450
Call to function is_array() with non-empty-array<(float|int)> will always evaluate to true.
phpstan: htdocs/compta/resultat/result.php#L389
Call to function is_array() with non-empty-array<array{NP: mixed, N?: (float|int), M?: non-empty-array<0|1|2|3|4|5|6|7|8|9|10|11, mixed>}> will always evaluate to true.
phpstan: htdocs/compta/stats/cabyprodserv.php#L480
Variable $selected_type in isset() always exists and is not nullable.
phpstan: htdocs/compta/stats/supplier_turnover_by_prodserv.php#L405
Variable $selected_type in isset() always exists and is not nullable.