This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from roelvanduijnhoven/feature/loosen-typehint
Prepare for a release that does not allow return status codes of jobs
- Loading branch information
Showing
4 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace SlmQueueTest\Asset; | ||
|
||
use SlmQueue\Job\AbstractJob; | ||
|
||
class JobWithNoReturnType extends AbstractJob | ||
{ | ||
public function execute() | ||
{ | ||
// Just set some stupid metadata | ||
$this->setMetadata('foo', 'bar'); | ||
|
||
return 999; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace SlmQueueTest\Asset; | ||
|
||
use SlmQueue\Job\AbstractJob; | ||
|
||
class JobWithVoidReturnType extends AbstractJob | ||
{ | ||
public function execute() | ||
{ | ||
// Just set some stupid metadata | ||
$this->setMetadata('foo', 'bar'); | ||
|
||
return 999; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters