From 7243769b0840b8bf8b15b6dec2f9ade696c15013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kukie=C5=82ka?= Date: Fri, 8 Apr 2016 11:18:52 +0200 Subject: [PATCH] i should double read mail first : ) --- src/Validation/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validation/Validator.php b/src/Validation/Validator.php index 480648861fa..ea6e2e80951 100644 --- a/src/Validation/Validator.php +++ b/src/Validation/Validator.php @@ -450,7 +450,7 @@ public function requirePresence($field, $mode = true, $message = null) } foreach ($field as $fieldName => $setting) { - if (is_string($setting) && is_int($fieldName)) { + if (is_string($setting)) { $fieldName = $setting; $setting = []; }