Skip to content

Commit 1b707c1

Browse files
committed
TASK: Deal with null values in input
1 parent a2a6846 commit 1b707c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/EelHelper/SuggestionIndexHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function build($input, $weight = 1)
4545
*/
4646
protected function prepareInput($input): ?array
4747
{
48-
$process = static function (string $input) {
48+
$process = static function (?string $input) {
4949
$input = preg_replace("/\r|\n/", '', $input);
5050
return array_values(array_filter(explode(' ', preg_replace("/[^[:alnum:][:space:]]/u", ' ', strip_tags($input)))));
5151
};

0 commit comments

Comments
 (0)