From 1bd00c3f4c0653ede1b677dd27fb6b88c09a19ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 15 Jun 2022 14:18:59 +0200 Subject: [PATCH] fix editing thirdparty without date --- src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php b/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php index f060c4bfb..a1df7ca55 100644 --- a/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php +++ b/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php @@ -767,9 +767,9 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface return $this; } - public function setFirstname(string $firstname): self + public function setFirstname(?string $firstname): self { - $this->firstname = $firstname; + $this->firstname = trim((string) $firstname); return $this; } @@ -781,9 +781,9 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface return $this; } - public function setName($name): self + public function setName(?string $name): self { - $this->name = $name; + $this->name = (string) $name; return $this; }