Skip to content

Commit 3b09a2e

Browse files
stklcodematthiasmullie
authored andcommitted
reverse arguments for implode() call i extractMath()
Fixes regression from 022cd72. implode() argument order is no longer auto-corrected with PHP 8.
1 parent 50b8b5d commit 3b09a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CSS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ protected function stripWhitespace($content)
685685
protected function extractMath()
686686
{
687687
$functions = array('calc', 'clamp', 'min', 'max');
688-
$pattern = '/('. implode($functions, '|') .')(\(.+?)(?=$|;|})/m';
688+
$pattern = '/('. implode('|', $functions) .')(\(.+?)(?=$|;|})/m';
689689

690690
// PHP only supports $this inside anonymous functions since 5.4
691691
$minifier = $this;

0 commit comments

Comments
 (0)