fix phpstan (#28441)
This commit is contained in:
parent
8262fb9605
commit
f0209f1b66
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue