Skip to content

Commit 0779cc4

Browse files
committed
change variable name of throw.
1 parent 16cdf1e commit 0779cc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Validation/Rules.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ public function required_without($str = null, ?string $otherFields = null, array
305305
return false;
306306
}
307307
if (strpos($otherField, '.') !== false) {
308-
if ($otherField === null) {
309-
throw new InvalidArgumentException('You must supply the parameters: keyField.');
308+
if ($field === null) {
309+
throw new InvalidArgumentException('You must supply the parameters: field.');
310310
}
311311

312312
$fieldData = dot_array_search($otherField, $data);

0 commit comments

Comments
 (0)