Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes types on $unique on Gearman task methods #1664

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions gearman/gearman.php
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ public function wait() {}
* @link https://php.net/manual/en/gearmanclient.dohigh.php
* @param string $function_name
* @param string $workload
* @param string $unique
* @param string|null $unique
* @return string A string representing the results of running a task
*/
public function doHigh($function_name, $workload, $unique = null) {}
Expand All @@ -1490,10 +1490,10 @@ public function doHigh($function_name, $workload, $unique = null) {}
* of the result. Normal and high priority tasks will get precedence over low
* priority tasks in the job queue.
*
* @link https://php.net/manual/en/gearmanclient.dolow.php
* @link https://php.net/manual/en/gearmanclient.donormal.php
* @param string $function_name
* @param string $workload
* @param string $unique
* @param string|null $unique
* @return string A string representing the results of running a task
*/
public function doNormal($function_name, $workload, $unique = null) {}
Expand Down Expand Up @@ -1593,7 +1593,7 @@ public function jobStatus($job_handle) {}
* @param string $function_name
* @param string $workload
* @param mixed $context
* @param string $unique
* @param string|null $unique
* @return GearmanTask|false A GearmanTask object or false if the task could not be added
*/
public function addTask($function_name, $workload, $context = null, $unique = null) {}
Expand All @@ -1608,7 +1608,7 @@ public function addTask($function_name, $workload, $context = null, $unique = nu
* @param string $function_name
* @param string $workload
* @param mixed $context
* @param string $unique
* @param string|null $unique
* @return GearmanTask|false A GearmanTask object or false if the task could not be added
*/
public function addTaskHigh($function_name, $workload, $context = null, $unique = null) {}
Expand All @@ -1623,7 +1623,7 @@ public function addTaskHigh($function_name, $workload, $context = null, $unique
* @param string $function_name
* @param string $workload
* @param mixed $context
* @param string $unique
* @param string|null $unique
* @return GearmanTask|false A GearmanTask object or false if the task could not be added
*/
public function addTaskLow($function_name, $workload, $context = null, $unique = null) {}
Expand All @@ -1637,7 +1637,7 @@ public function addTaskLow($function_name, $workload, $context = null, $unique =
* @param string $function_name
* @param string $workload
* @param mixed $context
* @param string $unique
* @param string|null $unique
* @return GearmanTask|false A GearmanTask object or false if the task could not be added
*/
public function addTaskBackground($function_name, $workload, $context = null, $unique = null) {}
Expand All @@ -1652,7 +1652,7 @@ public function addTaskBackground($function_name, $workload, $context = null, $u
* @param string $function_name
* @param string $workload
* @param mixed $context
* @param string $unique
* @param string|null $unique
* @return GearmanTask|false A GearmanTask object or false if the task could not be added
*/
public function addTaskHighBackground($function_name, $workload, $context = null, $unique = null) {}
Expand All @@ -1667,7 +1667,7 @@ public function addTaskHighBackground($function_name, $workload, $context = null
* @param string $function_name
* @param string $workload
* @param mixed $context
* @param string $unique
* @param string|null $unique
* @return GearmanTask|false A GearmanTask object or false if the task could not be added
*/
public function addTaskLowBackground($function_name, $workload, $context = null, $unique = null) {}
Expand Down
Loading