1
1
Fork 0

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

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