From e04ecb95e89f226422233a26229a33def69df2f5 Mon Sep 17 00:00:00 2001 From: thibdrev Date: Sat, 3 Feb 2024 00:07:05 +0100 Subject: [PATCH] qual: phpstan for htdocs/comm/action/class/api_agendaevents.class.php (#27959) htdocs/comm/action/class/api_agendaevents.class.php 273 Method AgendaEvents::put() should return int but returns object. htdocs/comm/action/class/api_agendaevents.class.php 276 Method AgendaEvents::put() should return int but returns false. --- htdocs/comm/action/class/api_agendaevents.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/action/class/api_agendaevents.class.php b/htdocs/comm/action/class/api_agendaevents.class.php index 657c585400a..d9f2c1df577 100644 --- a/htdocs/comm/action/class/api_agendaevents.class.php +++ b/htdocs/comm/action/class/api_agendaevents.class.php @@ -232,7 +232,7 @@ class AgendaEvents extends DolibarrApi * @param int $id Id of Agenda Event to update * @param array $request_data Datas * - * @return int + * @return Object|false Object with cleaned properties */ public function put($id, $request_data = null) {