From 590fa60e370a8b7f783a9dc1da6e8bcbaf441da0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 30 Jun 2020 09:36:18 +0200 Subject: [PATCH] Directly use scssphp/scssphp in StyleCompiler --- .../files/lib/system/style/StyleCompiler.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index ddd649b644..48f1961337 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -1,6 +1,7 @@ * @package WoltLabSuite\Core\System\Style */ class StyleCompiler extends SingletonFactory { /** * SCSS compiler object - * @var \Leafo\ScssPhp\Compiler + * @var Compiler */ protected $compiler = null; @@ -356,7 +357,7 @@ class StyleCompiler extends SingletonFactory { } try { - $this->compiler->setFormatter('Leafo\ScssPhp\Formatter\Crunched'); + $this->compiler->setFormatter(CrunchedFormatter::class); $content = $this->compiler->compile($scss); } catch (\Exception $e) { -- 2.20.1