mirror of
https://github.com/matthiasmullie/minify.git
synced 2025-02-22 20:12:42 +01:00
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:
parent
50b8b5daaa
commit
3b09a2e01c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user