Browse Source

Merge branch 'hotfix/fix-datetime'

Vincent GUFFON 3 years ago
parent
commit
e91ed106c8
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/ApiResources/Dolibarr/DolibarrContractLine.php

+ 4 - 4
src/ApiResources/Dolibarr/DolibarrContractLine.php

@@ -45,13 +45,13 @@ class DolibarrContractLine implements ApiResourcesInterface
      * Service active from date ...
      * Service active from date ...
      */
      */
     #[Groups('dolibarr_get')]
     #[Groups('dolibarr_get')]
-    private ?\DateTime $dateStart;
+    private ?\DateTimeInterface $dateStart = null;
 
 
     /**
     /**
      * Service active to date ...
      * Service active to date ...
      */
      */
     #[Groups('dolibarr_get')]
     #[Groups('dolibarr_get')]
-    private ?\DateTime $dateEnd;
+    private ?\DateTimeInterface $dateEnd = null;
 
 
     public function getId(): int
     public function getId(): int
     {
     {
@@ -97,7 +97,7 @@ class DolibarrContractLine implements ApiResourcesInterface
         return $this;
         return $this;
     }
     }
 
 
-    public function getDateStart(): ?\DateTime
+    public function getDateStart(): ?\DateTimeInterface
     {
     {
         return $this->dateStart;
         return $this->dateStart;
     }
     }
@@ -108,7 +108,7 @@ class DolibarrContractLine implements ApiResourcesInterface
         return $this;
         return $this;
     }
     }
 
 
-    public function isDateEnd(): ?\DateTime
+    public function isDateEnd(): ?\DateTimeInterface
     {
     {
         return $this->dateEnd;
         return $this->dateEnd;
     }
     }