From f0209f1b66e70dacf9b42a26ec74a71024c8ddb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 26 Feb 2024 22:54:32 +0100 Subject: [PATCH] fix phpstan (#28441) --- .../class/conferenceorboothattendee.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/eventorganization/class/conferenceorboothattendee.class.php b/htdocs/eventorganization/class/conferenceorboothattendee.class.php index 011c176e2f2..b137fd538ad 100644 --- a/htdocs/eventorganization/class/conferenceorboothattendee.class.php +++ b/htdocs/eventorganization/class/conferenceorboothattendee.class.php @@ -258,7 +258,7 @@ class ConferenceOrBoothAttendee extends CommonObject if ($result > 0) { $result = $this->fetch($result); if ($result > 0) { - $this->ref = $this->id; + $this->ref = (string) $this->id; $result = $this->update($user); } } @@ -333,10 +333,9 @@ class ConferenceOrBoothAttendee extends CommonObject $result = $object->createCommon($user); if ($result < 0) { $error++; - $this->error = $object->error; - $this->errors = $object->errors; + $this->setErrorsFromObject($object); } else { - $object->ref = $object->id; + $object->ref = (string) $object->id; $result = $object->update($user); }