mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
[phonenumber validation & format] format and validation does not make the app fail when network is not available
This commit is contained in:
@@ -47,6 +47,6 @@ class Templating extends AbstractExtension
|
||||
|
||||
public function formatPhonenumber($phonenumber)
|
||||
{
|
||||
return $this->phonenumberHelper->format($phonenumber);
|
||||
return $this->phonenumberHelper->format($phonenumber) ?? $phonenumber;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user