We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c8da9 commit 9c4c73eCopy full SHA for 9c4c73e
pkg/enqueue/Consumption/QueueConsumer.php
@@ -347,8 +347,17 @@ public function consume(ExtensionInterface $runtimeExtension = null)
347
/**
348
* @param bool $enableSubscriptionConsumer
349
*/
350
- public function enableSubscriptionConsumer(bool $enableSubscriptionConsumer)
+ public function enableSubscriptionConsumer($enableSubscriptionConsumer)
351
{
352
+ if (!is_bool($enableSubscriptionConsumer) {
353
+ throw new InvalidArgumentException(
354
+ sprintf(
355
+ 'The argument must be a boolean but got %s.',
356
+ is_object($argument) ? get_class($argument) : gettype($argument)
357
+ )
358
+ );
359
+ }
360
+
361
$this->enableSubscriptionConsumer = $enableSubscriptionConsumer;
362
}
363
0 commit comments