fix phpstan in target.class.php

This commit is contained in:
Frédéric FRANCE 2024-01-17 18:38:06 +01:00 committed by GitHub
parent 0ed567c0db
commit 6ba594efd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -223,7 +223,7 @@ class Target extends CommonObject
public function create(User $user, $notrigger = 0)
{
$resultcreate = $this->createCommon($user, $notrigger);
$this->ref = $this->id;
$this->ref = (string) $this->id;
if ($resultcreate <= 0) {
return $resultcreate;