We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d25861 commit e5a8854Copy full SHA for e5a8854
1 file changed
Classes/EelHelper/SuggestionIndexHelper.php
@@ -71,15 +71,17 @@ protected function prepareInput($input): ?array
71
72
if (\is_string($input)) {
73
return $process($input);
74
- } elseif (\is_array($input)) {
+ }
75
+
76
+ if (\is_array($input)) {
77
$data = [];
78
foreach (array_map($process, $input) as $values) {
79
$data = \array_merge($data, $values);
80
}
81
return $data;
- } else {
- throw new Exception('Only string or array are supported as input', 1512733287);
82
83
84
+ throw new Exception('Only string or array are supported as input', 1512733287);
85
86
87
/**
0 commit comments