Skip to content

Commit e441ef3

Browse files
committed
Merge pull request CoderKungfu#18 from simkimsia/patch-2
Update BeanstalkSampleQueue.php
2 parents bbcd88e + 3138733 commit e441ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/queues/BeanstalkSampleQueue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public function __construct()
1919
);
2020
}
2121

22-
public function addJob(array $newJob)
22+
public function addJob($newJob = null)
2323
{
2424
$formatted_data = array('worker'=>$this->queueWorker, 'data'=>$newJob);
2525
$this->dataSource->add($formatted_data);
2626

2727
return true;
2828
}
2929

30-
public function getJob()
30+
public function getJob($jobId = null)
3131
{
3232
$data = $this->dataSource->get();
3333
$nextJob = new \PHPQueue\Job($data, $this->dataSource->last_job_id);

0 commit comments

Comments
 (0)