File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -346,19 +346,18 @@ public function consume(ExtensionInterface $runtimeExtension = null)
346
346
347
347
/**
348
348
* @param bool $enableSubscriptionConsumer
349
+ * @throws \Enqueue\Consumption\Exception\InvalidArgumentException
349
350
*/
350
351
public function enableSubscriptionConsumer ($ enableSubscriptionConsumer )
351
352
{
352
- if (!is_bool ($ enableSubscriptionConsumer ) {
353
+ if (!is_bool ($ enableSubscriptionConsumer )) {
353
354
throw new InvalidArgumentException (
354
355
sprintf (
355
356
'The argument must be a boolean but got %s. ' ,
356
- is_object ($ argument ) ? get_class ($ argument ) : gettype ($ argument )
357
+ is_object ($ enableSubscriptionConsumer ) ? get_class ($ enableSubscriptionConsumer ) : gettype ($ enableSubscriptionConsumer )
357
358
)
358
359
);
359
360
}
360
-
361
- $ this ->enableSubscriptionConsumer = $ enableSubscriptionConsumer ;
362
361
}
363
362
364
363
/**
You can’t perform that action at this time.
0 commit comments