From 035629efe533c3829bee5c13ef1ced754c94f865 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 23 Jun 2021 17:05:46 +0200 Subject: [PATCH] Remove autoloader compatibility layer mapping Leafo to Scssphp It's unlikely that anything depends on this and as outlined in the commit 9bfa7303627983c13607536aae839e7e0ebb0968 that initially added it, the compatibility is incomplete as it cannot map Exceptions. With scssphp 1.5 (WoltLab/WCF#4274) further changes will be introduced by the upstream library that definitely will require adjustments in consumers. So let's clean this up. --- wcfsetup/install/files/lib/core.functions.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/wcfsetup/install/files/lib/core.functions.php b/wcfsetup/install/files/lib/core.functions.php index 848417b840..cb5758411d 100644 --- a/wcfsetup/install/files/lib/core.functions.php +++ b/wcfsetup/install/files/lib/core.functions.php @@ -17,16 +17,6 @@ namespace { // set autoload function spl_autoload_register([WCF::class, 'autoload']); - spl_autoload_register(function ($className) { - /** - * @deprecated 5.3 This file is a compatibility layer mapping from Leafo\\ to ScssPhp\\ - */ - $leafo = 'Leafo\\'; - if (substr($className, 0, strlen($leafo)) === $leafo) { - class_alias('ScssPhp\\'.substr($className, strlen($leafo)), $className, true); - } - }); - /** * Escapes a string for use in sql query. * -- 2.20.1