From 8ea879a80bc028ffd4897529305ed88d65dd02c5 Mon Sep 17 00:00:00 2001 From: thibdrev Date: Tue, 13 Feb 2024 11:30:48 +0100 Subject: [PATCH] qual: phpstan for htdocs/compta/deplacement/class/deplacementstats.class.php (#28149) htdocs/compta/deplacement/class/deplacementstats.class.php 101 Parameter #1 $year (string) of method DeplacementStats::getNbByMonth() should be compatible with parameter $year (int) of method Stats::getNbByMonth() --- htdocs/compta/deplacement/class/deplacementstats.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/deplacement/class/deplacementstats.class.php b/htdocs/compta/deplacement/class/deplacementstats.class.php index 3515d9a17aa..cd9156d8444 100644 --- a/htdocs/compta/deplacement/class/deplacementstats.class.php +++ b/htdocs/compta/deplacement/class/deplacementstats.class.php @@ -94,9 +94,9 @@ class DeplacementStats extends Stats /** * Renvoie le nombre de facture par mois pour une annee donnee * - * @param string $year Year to scan + * @param int $year Year to scan * @param int $format 0=Label of abscissa is a translated text, 1=Label of abscissa is month number, 2=Label of abscissa is first letter of month - * @return array Array of values + * @return array Array of values */ public function getNbByMonth($year, $format = 0) {