Skip to content

Commit

Permalink
Fix error, method not return code
Browse files Browse the repository at this point in the history
  • Loading branch information
idmarinas committed Aug 31, 2021
1 parent a985b00 commit 6d67431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/Compiler/RegisterOccurrence.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function addListener($eventName, $listener, int $probability, int $priori
throw new \InvalidArgumentException('Priority must be one of "OccurrenceSubscriberInterface::PRIORITY_INFO, OccurrenceSubscriberInterface::PRIORITY_INTERACTIVE or OccurrenceSubscriberInterface::PRIORITY_ANSWER"');
}

$this->listeners[] = parent::addListener($eventName, $listener[1], $probability, $priority);
$this->listeners[] = [$eventName, $listener[1], min(10000, max(0, $probability)), $priority];
}

public static function getSubscribedOccurrences(): array
Expand Down

0 comments on commit 6d67431

Please sign in to comment.