From: Roland Häder Date: Sat, 18 Jun 2022 13:56:58 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8756d923160b99a26204ad49bd3cb2e02bf32075;p=friendica.git Continued: - prevents a "Return value of Friendica\Core\Worker::workerProcess() must be of the type array, bool returned" --- diff --git a/src/Core/Worker.php b/src/Core/Worker.php index bcd12f3294..62fd321c24 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -1011,7 +1011,9 @@ class Worker DI::lock()->release(self::LOCK_PROCESS); - return (self::getWaitingJobForPID() ?? []); + // Prevents "Return value of Friendica\Core\Worker::workerProcess() must be of the type array, bool returned" + $process = self::getWaitingJobForPID(); + return (is_array($process) ? $process : []); } /**