Skip to content

Commit 1d4ccf6

Browse files
gr8manmichalsn
andauthored
Apply suggestion from @michalsn
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent 449dbae commit 1d4ccf6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

system/Common.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ function esc($data, string $context = 'html', ?string $encoding = null)
467467
foreach ($data as &$value) {
468468
$value = esc($value, $context, $encoding);
469469
}
470-
unset($value); // Prevent reference leak: &$value would remain bound to last element
471470

472471
return $data;
473472
}

0 commit comments

Comments
 (0)