From 0cf51d25e10e6bcb5ddaec55c334a13277d8d4bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 15 May 2019 18:27:26 +0200 Subject: [PATCH] Fix PHP 5.5 compatibility PHP 5.5 does not support constant expressions in static variable declarations. Simply remove the `static`, it brings no real benefit. --- .../system/background/job/EmailDeliveryBackgroundJob.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php index 6b12c2ffb4..ef08f3d6e7 100644 --- a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php @@ -63,7 +63,7 @@ class EmailDeliveryBackgroundJob extends AbstractBackgroundJob { * @return int between 15 minutes and 24 hours */ public function retryAfter() { - static $lookup = [ + $lookup = [ 1 => 15, 2 => 45, // running total: 3 => 1 * 60, // 2 hours -- 2.20.1