Fix PHP 5.5 compatibility
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 15 May 2019 16:27:26 +0000 (18:27 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 15 May 2019 16:27:26 +0000 (18:27 +0200)
PHP 5.5 does not support constant expressions in static variable declarations.
Simply remove the `static`, it brings no real benefit.

wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php

index 6b12c2ffb43c32ea7d3173b59b91bba02fb7045d..ef08f3d6e74988dc3b960cc555d70bf585640747 100644 (file)
@@ -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