From e9400176899e3e10c7f3da06e79599d82ca22ae4 Mon Sep 17 00:00:00 2001 From: Alexssssss Date: Thu, 23 Jun 2016 16:50:55 +0200 Subject: [PATCH] Preg_match error array > string When a null value is given to coerceValue the following error is returned: ''' _WARNING [2]: preg_match() expects parameter 2 to be string, array given /vendor/leafo/scssphp/src/Compiler.php, line: 3635 ''' This change fixes that for me. --- src/Compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compiler.php b/src/Compiler.php index 96e71692..7e93fcb0 100644 --- a/src/Compiler.php +++ b/src/Compiler.php @@ -3621,7 +3621,7 @@ private function coerceValue($value) } if ($value === null) { - $value = self::$null; + return self::$null; } if (is_numeric($value)) {