Skip to content

Commit

Permalink
Missing parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudTarroux authored Aug 22, 2018
1 parent 5027120 commit 89d2330
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/enqueue/Consumption/QueueConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,19 +346,18 @@ public function consume(ExtensionInterface $runtimeExtension = null)

/**
* @param bool $enableSubscriptionConsumer
* @throws \Enqueue\Consumption\Exception\InvalidArgumentException
*/
public function enableSubscriptionConsumer($enableSubscriptionConsumer)
{
if (!is_bool($enableSubscriptionConsumer) {
if (!is_bool($enableSubscriptionConsumer)) {
throw new InvalidArgumentException(
sprintf(
'The argument must be a boolean but got %s.',
is_object($argument) ? get_class($argument) : gettype($argument)
is_object($enableSubscriptionConsumer) ? get_class($enableSubscriptionConsumer) : gettype($enableSubscriptionConsumer)
)
);
}

$this->enableSubscriptionConsumer = $enableSubscriptionConsumer;
}

/**
Expand Down

0 comments on commit 89d2330

Please sign in to comment.