We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bbc5f0 commit 7b2a0feCopy full SHA for 7b2a0fe
1 file changed
lib/Twitter/Text/HitHighlighter.php
@@ -141,7 +141,7 @@ public function highlight($tweet = null, array $hits = null)
141
$offset = 0;
142
$start_in_chunk = false;
143
# Flatten the multidimensional hits array:
144
- $hits_flat = array_merge(...array_values($hits));
+ $hits_flat = call_user_func_array('array_merge', array_values($hits));
145
$hits_flat_count = count($hits_flat);
146
# Loop over the hit indices:
147
for ($index = 0; $index < $hits_flat_count; $index++) {
0 commit comments