* Add missing return type
This adds the `self` return type to `JobPipeline::shouldBeQueued()` so that static analyzers won't get confused and treat its return value as `mixed`.
* Change return types to `static`
* Fix tests not running
---------
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
WARN PHP Deprecated: Stancl\JobPipeline\JobPipeline::__construct(): Implicitly marking parameter $send as nullable is deprecated, the explicit nullable type must be used instead in vendor/stancl/jobpipeline/src/JobPipeline.php on line 31.
* Add $queue attribute
This code enables me to change the queue name that the JobPipeline will be pushed to.
Now I can do something like this:
```php
JobPipeline::make([
Jobs\CreateDatabase::class,
Jobs\MigrateDatabase::class,
// Jobs\SeedDatabase::class,
// Your own jobs to prepare the tenant.
// Provision API keys, create S3 buckets, anything you want!
])->send(function (Events\TenantCreated $event)
{
return $event->tenant;
})->onQueue('another-queue')
->shouldBeQueued()
```
* Add .idea directory to gitignore
* The following methods where added: onConnection, onQueue, delay, tries, shouldBeQueuedOn. The signature of shouldBeQueued was changed too.
* reuse shouldBeQueuedOn
* updating docs
* added timeout
* docs updated
* .phpunit.cache/ added to gitignore
* tests for shouldQueueOn method
* leave only shouldBeQueued method
* update README
* remove unnecessary property declarations
* Delete jobpipelinetest.json
* add jobpipelinetest.json as a empty file
* update readme
* simplify tests
* improve code
* improve readme
---------
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* Bump dependencies for Laravel 10
* Update GitHub Actions for Laravel 10
* drop < L9 support
* use `dispatch_sync` instead of `dispatch_now`
* migrate phpunit configuration
* update matrix format
---------
Co-authored-by: Samuel Štancl <samuel@archte.ch>