Skip to content

Commit f4be7b7

Browse files
authored
Apply suggestions from code review
1 parent b195deb commit f4be7b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/JobHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function __construct($queue, $payload)
8282
* Create a new job and save it to the specified queue.
8383
*
8484
* @param string $queue The name of the queue to place the job in.
85-
* @param class-string $class The name of the class that contains the code to execute the job.
85+
* @param class-string<Resque\Job\Job> $class The name of the class that contains the code to execute the job.
8686
* @param array $args Any optional arguments that should be passed when the job is executed.
8787
* @param boolean $monitor Set to true to be able to monitor the status of a job.
8888
* @param string $id Unique identifier for tracking the job. Generated if not supplied.
@@ -214,7 +214,7 @@ public function getInstance(): Job
214214
* Actually execute a job by calling the perform method on the class
215215
* associated with the job with the supplied arguments.
216216
*
217-
* @return bool
217+
* @return mixed Return of perform, or false if DoNotPerformException was thrown
218218
* @throws ResqueException When the job's class could not be found.
219219
*/
220220
public function perform()

0 commit comments

Comments
 (0)