Skip to content

Commit 7b2a0fe

Browse files
committed
Opt for an alternative to spread to be compatible with PHP 5.3.
1 parent 2bbc5f0 commit 7b2a0fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Twitter/Text/HitHighlighter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function highlight($tweet = null, array $hits = null)
141141
$offset = 0;
142142
$start_in_chunk = false;
143143
# Flatten the multidimensional hits array:
144-
$hits_flat = array_merge(...array_values($hits));
144+
$hits_flat = call_user_func_array('array_merge', array_values($hits));
145145
$hits_flat_count = count($hits_flat);
146146
# Loop over the hit indices:
147147
for ($index = 0; $index < $hits_flat_count; $index++) {

0 commit comments

Comments
 (0)