From ddf47bda3f2f0e73083de110cb7f90fec14054e4 Mon Sep 17 00:00:00 2001 From: Antonio Eduardo Date: Fri, 31 Jan 2020 15:10:57 -0300 Subject: [PATCH] Update CorreiosConsulta.php --- src/Cagartner/CorreiosConsulta/CorreiosConsulta.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cagartner/CorreiosConsulta/CorreiosConsulta.php b/src/Cagartner/CorreiosConsulta/CorreiosConsulta.php index 4be42b9..d75729a 100644 --- a/src/Cagartner/CorreiosConsulta/CorreiosConsulta.php +++ b/src/Cagartner/CorreiosConsulta/CorreiosConsulta.php @@ -251,7 +251,7 @@ protected static function cleanPostcode($postcode) */ protected function cleanMoney($value) { - return (float) str_replace(',', '.', $value); + return (float) str_replace(',', '.', str_replace('.', '', $value)); } /**