Skip to content

Commit

Permalink
default timeout to zero instead of null to fix deprecated error in PH…
Browse files Browse the repository at this point in the history
…P 8.1
  • Loading branch information
brianlmoon committed Nov 22, 2024
1 parent b651c08 commit 2048d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bridge/GearmanPeclManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function start_lib_worker($worker_list, $timeouts = array()) {
}

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

0 comments on commit 2048d62

Please sign in to comment.