From b9c74de6d12ef40ab4baf67303ab22a10fcd5b32 Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 25 Feb 2023 17:30:20 +0100 Subject: =?UTF-8?q?document=20locations,=20correction=20de=20pas=20mal=20d?= =?UTF-8?q?e=20probl=C3=A8mes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/Locations.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/model/Locations.php') diff --git a/src/model/Locations.php b/src/model/Locations.php index 8ebf757..149c1f1 100644 --- a/src/model/Locations.php +++ b/src/model/Locations.php @@ -54,10 +54,9 @@ class Locations extends Model $this->etat_des_lieux_fin = $value; return($this); } - public function setDureeLocation($value) + public function setDureeLocation(string $value) { - $value = str_replace(',', '.', $value); - $this->duree_location = (float) $value; + $this->duree_location = $value; return($this); } public function setLoyerMensuel($value) -- cgit v1.2.3