From 6d47b0f4f8bec3b49a0fbd0d18abf1834bc60a16 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 14 Dec 2022 20:34:40 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B04517=20-=20PHP=208.0:=20Fix=20undefined?= =?UTF-8?q?=20array=20key=20due=20to=20type=20cast=20being=20done=20before?= =?UTF-8?q?=20coalesce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/asynctask.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/asynctask.class.inc.php b/core/asynctask.class.inc.php index 70b3d1fb0..c7030c04d 100644 --- a/core/asynctask.class.inc.php +++ b/core/asynctask.class.inc.php @@ -181,7 +181,7 @@ abstract class AsyncTask extends DBObject if (is_array($aRetries) && array_key_exists(get_class($this), $aRetries)) { $aConfig = $aRetries[get_class($this)]; - $bExponential = (bool)$aConfig['exponential_delay'] ?? $bExponential; + $bExponential = (bool) ($aConfig['exponential_delay'] ?? $bExponential); } return $bExponential; }