From a728dab9110ea088285b2a462304b65ffc89dab3 Mon Sep 17 00:00:00 2001 From: cristicsk Date: Tue, 3 Nov 2020 19:12:08 +0200 Subject: [PATCH 1/2] fix/key or null --- src/Compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compiler.php b/src/Compiler.php index d22d0a35..8ced4087 100644 --- a/src/Compiler.php +++ b/src/Compiler.php @@ -4373,7 +4373,7 @@ protected function sortArgs($prototype, $args) foreach ($args as $arg) { list($key, $value) = $arg; - $key = $key[1]; + $key = $key[1] ?? null; if (empty($key)) { $posArgs[] = empty($arg[2]) ? $value : $arg; From 6f1a03e40a277d0612a96b6d7a74b605d5d24158 Mon Sep 17 00:00:00 2001 From: Csakany Cristian Date: Wed, 4 Nov 2020 10:09:19 +0200 Subject: [PATCH 2/2] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index eaa8e87b..80c4caef 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "leafo/scssphp", + "name": "cristicsk/scssphp", "type": "library", "description": "scssphp is a compiler for SCSS written in PHP.", "keywords": ["css", "stylesheet", "scss", "sass", "less"],