Skip to content

Commit

Permalink
Ensure parsed dataset is type of array when calling processChain
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Oliver committed Oct 12, 2023
1 parent b69a2c4 commit 8a0e4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data-processing.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function processDataChain(string $string, array $dataset): mixed
}
}

$dataset = !empty(trim($thisVar)) ? self::processChain($thisVar, $dataset) : $dataset;
$dataset = !empty(trim($thisVar)) ? self::processChain($thisVar, is_array($dataset) ? $dataset : []) : $dataset;
}
}

Expand Down

0 comments on commit 8a0e4a4

Please sign in to comment.