From: Tim Düsterhus Date: Tue, 30 Jun 2020 07:36:18 +0000 (+0200) Subject: Directly use scssphp/scssphp in StyleCompiler X-Git-Tag: 5.3.0_Alpha_1~150^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=590fa60e370a8b7f783a9dc1da6e8bcbaf441da0;p=GitHub%2FWoltLab%2FWCF.git Directly use scssphp/scssphp in StyleCompiler --- 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) {