Skip to content

Commit 6b72d1b

Browse files
committed
refactor: by rector
1 parent a6dc7ed commit 6b72d1b

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
@@ -443,6 +443,6 @@ public function field_exists(
443443
?string $error = null,
444444
?string $field = null
445445
): bool {
446-
return (bool) (array_key_exists($field, $data));
446+
return array_key_exists($field, $data);
447447
}
448448
}

system/Validation/StrictRules/Rules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,6 @@ public function field_exists(
419419
?string $error = null,
420420
?string $field = null
421421
): bool {
422-
return (bool) (array_key_exists($field, $data));
422+
return array_key_exists($field, $data);
423423
}
424424
}

0 commit comments

Comments
 (0)