浏览代码

fix error on missing dolibarr account

Olivier Massot 3 年之前
父节点
当前提交
a149d07e0b
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/ApiResources/Dolibarr/DolibarrAccount.php

+ 3 - 3
src/ApiResources/Dolibarr/DolibarrAccount.php

@@ -44,7 +44,7 @@ class DolibarrAccount implements ApiResourcesInterface
      * Dolibarr societies pk
      */
     #[Groups('dolibarr_get')]
-    private int $socId;
+    private ?int $socId = null;
 
     /**
      * Opentalent client ref
@@ -87,12 +87,12 @@ class DolibarrAccount implements ApiResourcesInterface
         return $this;
     }
 
-    public function getSocId(): int
+    public function getSocId(): ?int
     {
         return $this->socId;
     }
 
-    public function setSocId(int $socId): self
+    public function setSocId(?int $socId): self
     {
         $this->socId = $socId;
         return $this;