We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 544f96f + dd09ebe commit 0566870Copy full SHA for 0566870
src/Rules/IranianMobile.php
@@ -89,7 +89,7 @@ public function validate(string $attribute, mixed $value, Closure $fail): void
89
'all' => 'ir_mobile_with_country_code',
90
];
91
92
- if (! array_key_exists($this->format, $formatPatterns)) {
+ if (!isset($formatPatterns[$this->format]))
93
throw new \InvalidArgumentException('Invalid format. valid formats are: ' .
94
implode(', ', array_keys($formatPatterns))
95
);
0 commit comments