Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed May 11, 2024
1 parent 5c96226 commit 49e59d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/InputFilterContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,17 @@ public function filterValue(string $key, $multiDimensional)
$var = '$multiDimensional';
foreach ($pieces as $piece) {
$_var = substr($var, 1);
if (is_null(${$_var})) {
${$var} = [];
if (empty(${$_var})) {
${$_var} = [];
}
ksort(${$_var});

$append = '[' . self::sanitize($piece) . ']';

if (!isset(${$var . $append})) {
${$var . $append} = null;
$var .= $append;
break;
continue;
}
// Alphabetize the parent array
if (is_array(${$var})) {
Expand Down

0 comments on commit 49e59d6

Please sign in to comment.