From 615acae89fd758367af354ae53b20825b82e1c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 9 Jan 2024 18:56:07 +0100 Subject: [PATCH] Method should return int|null but return statement is missing. --- htdocs/core/class/html.formcategory.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formcategory.class.php b/htdocs/core/class/html.formcategory.class.php index fdf1d504331..fb09ff65486 100644 --- a/htdocs/core/class/html.formcategory.class.php +++ b/htdocs/core/class/html.formcategory.class.php @@ -88,7 +88,7 @@ class FormCategory extends Form * @param string $selected Id category pre-selection * @param string $htmlname Name of HTML field * @param int $showempty Add an empty field - * @return integer|null + * @return int|null */ public function selectProductCategory($selected = 0, $htmlname = 'product_category_id', $showempty = 0) { @@ -123,6 +123,7 @@ class FormCategory extends Form return $num_rows; } else { dol_print_error($this->db); + return; } } }