We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce601bc commit 39f0a8bCopy full SHA for 39f0a8b
src/Config/Services.php
@@ -20,14 +20,14 @@
20
21
class Services extends BaseService
22
{
23
- public static function queue(?QueueConfig $config = null, $getShared = true): QueueInterface
+ public static function queue($getShared = true): QueueInterface
24
25
if ($getShared) {
26
- return static::getSharedInstance('queue', $config);
+ return static::getSharedInstance('queue');
27
}
28
29
- /** @var QueueConfig|null $config */
30
- $config ??= config('Queue');
+ /** @var QueueConfig $config */
+ $config = config('Queue');
31
32
return (new Queue($config))->init();
33
0 commit comments