reverse arguments for implode() call i extractMath()

Fixes regression from 022cd72.
implode() argument order is no longer auto-corrected with PHP 8.
This commit is contained in:
Stefan Kalscheuer 2020-12-27 12:15:50 +01:00 committed by Matthias Mullie
parent 50b8b5daaa
commit 3b09a2e01c

View File

@ -685,7 +685,7 @@ class CSS extends Minify
protected function extractMath()
{
$functions = array('calc', 'clamp', 'min', 'max');
$pattern = '/('. implode($functions, '|') .')(\(.+?)(?=$|;|})/m';
$pattern = '/('. implode('|', $functions) .')(\(.+?)(?=$|;|})/m';
// PHP only supports $this inside anonymous functions since 5.4
$minifier = $this;