Skip to content

Commit

Permalink
Opt for an alternative to spread to be compatible with PHP 5.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Mar 18, 2021
1 parent 2bbc5f0 commit 7b2a0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Twitter/Text/HitHighlighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function highlight($tweet = null, array $hits = null)
$offset = 0;
$start_in_chunk = false;
# Flatten the multidimensional hits array:
$hits_flat = array_merge(...array_values($hits));
$hits_flat = call_user_func_array('array_merge', array_values($hits));
$hits_flat_count = count($hits_flat);
# Loop over the hit indices:
for ($index = 0; $index < $hits_flat_count; $index++) {
Expand Down

0 comments on commit 7b2a0fe

Please sign in to comment.