Skip to content

Commit 89d2330

Browse files
Missing parenthesis
1 parent 5027120 commit 89d2330

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/enqueue/Consumption/QueueConsumer.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -346,19 +346,18 @@ public function consume(ExtensionInterface $runtimeExtension = null)
346346

347347
/**
348348
* @param bool $enableSubscriptionConsumer
349+
* @throws \Enqueue\Consumption\Exception\InvalidArgumentException
349350
*/
350351
public function enableSubscriptionConsumer($enableSubscriptionConsumer)
351352
{
352-
if (!is_bool($enableSubscriptionConsumer) {
353+
if (!is_bool($enableSubscriptionConsumer)) {
353354
throw new InvalidArgumentException(
354355
sprintf(
355356
'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)
357358
)
358359
);
359360
}
360-
361-
$this->enableSubscriptionConsumer = $enableSubscriptionConsumer;
362361
}
363362

364363
/**

0 commit comments

Comments
 (0)