Skip to content

Commit

Permalink
refactor: by rector
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 7, 2023
1 parent f978d71 commit 673ff74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/Validation/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,6 @@ public function field_exists(
?string $error = null,
?string $field = null
): bool {
return (bool) (array_key_exists($field, $data));
return array_key_exists($field, $data);
}
}
2 changes: 1 addition & 1 deletion system/Validation/StrictRules/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,6 @@ public function field_exists(
?string $error = null,
?string $field = null
): bool {
return (bool) (array_key_exists($field, $data));
return array_key_exists($field, $data);
}
}

0 comments on commit 673ff74

Please sign in to comment.