Skip to content

Commit 0a54bca

Browse files
committed
refactor: remove uneeded unset()
1 parent b7e15b9 commit 0a54bca

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

system/Validation/Validation.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ private function processIfExist(string $field, $rules, ?array $data)
345345
$dataIsExisting = array_key_exists($ifExistField, $flattenedData);
346346
}
347347

348-
unset($ifExistField, $flattenedData);
349-
350348
if (! $dataIsExisting) {
351349
// we return early if `if_exist` is not satisfied. we have nothing to do here.
352350
return true;

0 commit comments

Comments
 (0)