We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5722ab0 commit 7b405d1Copy full SHA for 7b405d1
1 file changed
system/Validation/StrictRules/Rules.php
@@ -117,6 +117,10 @@ public function greater_than_equal_to($str, string $min): bool
117
*/
118
public function is_not_unique($str, string $field, array $data): bool
119
{
120
+ if (is_object($str) || is_array($str)) {
121
+ return false;
122
+ }
123
+
124
// Grab any data for exclusion of a single row.
125
[$field, $whereField, $whereValue] = array_pad(
126
explode(',', $field),
@@ -171,6 +175,10 @@ public function in_list($value, string $list): bool
171
175
172
176
public function is_unique($str, string $field, array $data): bool
173
177
178
179
180
181
174
182
[$field, $ignoreField, $ignoreValue] = array_pad(
183
184
3,
0 commit comments