We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
null
Currently the signature is this:
public function __construct(string $command, $input = [], string $queue = Daemon::DEFAULT_QUEUE_NAME)
But the correct way of creating a new Job with input is this:
Job
new Job('your:command', 'input-value --an-option', 'the_queue');
If the Job is created passing an array, the Job will behave wrongly.
array
So, the syntax required to create a new Job without input is a bit confusing:
input
new Job('your:command', [], 'the_queue');
It is better to use a null value:
new Job('your:command', null, 'the_queue');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently the signature is this:
But the correct way of creating a new
Job
with input is this:If the Job is created passing an
array
, theJob
will behave wrongly.So, the syntax required to create a new
Job
withoutinput
is a bit confusing:It is better to use a
null
value:The text was updated successfully, but these errors were encountered: