Skip to content

Beautiful Open-Source Form Builder

Fix phone validation

Julien Nahum54f92f844ff6
diff --git a/app/Rules/ValidPhoneInputRule.php b/app/Rules/ValidPhoneInputRule.php
index fb563e28c..4b50224b3 100644
--- a/app/Rules/ValidPhoneInputRule.php
+++ b/app/Rules/ValidPhoneInputRule.php
@@ -8,7 +8,7 @@ use Illuminate\Support\Str;
class ValidPhoneInputRule implements Rule
{
- public ?int $reason;
+ public ?int $reason = 0;
public function passes($attribute, $value)
{