We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 891ff0d commit f56c77eCopy full SHA for f56c77e
lib/Validations.php
@@ -422,7 +422,7 @@ public function validates_format_of($attrs)
422
$attribute = $options[0];
423
$var = $this->model->$attribute;
424
425
- if (is_null($options['with']) || !is_string($options['with']) || !is_string($options['with']))
+ if (is_null($options['with']) || !is_string($options['with']))
426
throw new ValidationsArgumentError('A regular expression must be supplied as the [with] option of the configuration array.');
427
else
428
$expression = $options['with'];
0 commit comments