From: Alexander Ebert Date: Sun, 24 May 2020 19:38:15 +0000 (+0200) Subject: Incorrect import in PHP 5.5 X-Git-Tag: 3.1.15~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76c76e7bf59419c2527591312826c3b383d2b1e5;p=GitHub%2FWoltLab%2FWCF.git Incorrect import in PHP 5.5 --- diff --git a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php index 4e5e879da9..4de8ebc674 100644 --- a/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php @@ -8,7 +8,6 @@ use wcf\system\exception\ImplementationException; use wcf\system\exception\SystemException; use wcf\system\SingletonFactory; use wcf\system\WCF; -use function wcf\functions\exception\logThrowable; /** * Provides functions to execute cronjobs. @@ -260,7 +259,8 @@ class CronjobScheduler extends SingletonFactory { */ protected function logResult(CronjobLogEditor $logEditor, $exception = null) { if ($exception !== null) { - logThrowable($exception); + // Do not move this into an import, `use function` was introduced in PHP 5.6. + \wcf\functions\exception\logThrowable($exception); $errString = implode("\n", [ $exception->getMessage(),