Skip to content

Commit 2048d62

Browse files
committed
default timeout to zero instead of null to fix deprecated error in PHP 8.1
1 parent b651c08 commit 2048d62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bridge/GearmanPeclManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function start_lib_worker($worker_list, $timeouts = array()) {
5050
}
5151

5252
foreach ($worker_list as $w) {
53-
$timeout = (isset($timeouts[$w]) ? $timeouts[$w] : null);
53+
$timeout = (isset($timeouts[$w]) ? $timeouts[$w] : 0);
5454
$this->log("Adding job $w ; timeout: " . $timeout, GearmanManager::LOG_LEVEL_WORKER_INFO);
5555
$thisWorker->addFunction($w, array($this, "do_job"), $this, $timeout);
5656
}

0 commit comments

Comments
 (0)