From: Tim Düsterhus Date: Wed, 15 May 2019 16:27:26 +0000 (+0200) Subject: Fix PHP 5.5 compatibility X-Git-Tag: 5.2.0_Alpha_1~19^2~2^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0cf51d25e10e6bcb5ddaec55c334a13277d8d4bb;p=GitHub%2FWoltLab%2FWCF.git 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. --- 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