Continued:

- prevents a "Return value of Friendica\Core\Worker::workerProcess() must be of the type array, bool returned"
This commit is contained in:
Roland Häder 2022-06-18 15:56:58 +02:00
parent bd3a7b9877
commit 8756d92316
Signed by: roland
GPG Key ID: C82EDE5DDFA0BA77
1 changed files with 3 additions and 1 deletions

View File

@ -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 : []);
}
/**