Skip to content

Commit

Permalink
Implode swap parameter order for PHP-7.4 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wim Wisselink authored and matthiasmullie committed Dec 19, 2019
1 parent e87effb commit 47a5371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CSS.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ protected function shortenColors($content)
);

return preg_replace_callback(
'/(?<=[: ])('.implode(array_keys($colors), '|').')(?=[; }])/i',
'/(?<=[: ])('.implode('|', array_keys($colors)).')(?=[; }])/i',
function ($match) use ($colors) {
return $colors[strtoupper($match[0])];
},
Expand Down

0 comments on commit 47a5371

Please sign in to comment.