From 76c76e7bf59419c2527591312826c3b383d2b1e5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 24 May 2020 21:38:15 +0200 Subject: [PATCH] Incorrect import in PHP 5.5 --- .../files/lib/system/cronjob/CronjobScheduler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(), -- 2.20.1