fix editing thirdparty without date

This commit is contained in:
Julien Fastré 2022-06-15 14:18:59 +02:00
parent 7ac54a6c9f
commit 1bd00c3f4c

View File

@ -767,9 +767,9 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
return $this; return $this;
} }
public function setFirstname(string $firstname): self public function setFirstname(?string $firstname): self
{ {
$this->firstname = $firstname; $this->firstname = trim((string) $firstname);
return $this; return $this;
} }
@ -781,9 +781,9 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
return $this; return $this;
} }
public function setName($name): self public function setName(?string $name): self
{ {
$this->name = $name; $this->name = (string) $name;
return $this; return $this;
} }