Skip to content

Commit 673ff74

Browse files
committed
refactor: by rector
1 parent f978d71 commit 673ff74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Validation/Rules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,6 @@ public function field_exists(
441441
?string $error = null,
442442
?string $field = null
443443
): bool {
444-
return (bool) (array_key_exists($field, $data));
444+
return array_key_exists($field, $data);
445445
}
446446
}

system/Validation/StrictRules/Rules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,6 @@ public function field_exists(
389389
?string $error = null,
390390
?string $field = null
391391
): bool {
392-
return (bool) (array_key_exists($field, $data));
392+
return array_key_exists($field, $data);
393393
}
394394
}

0 commit comments

Comments
 (0)