diff --git a/Event/EventManager.php b/Event/EventManager.php index 8f86b7181..84d02ec8a 100644 --- a/Event/EventManager.php +++ b/Event/EventManager.php @@ -162,7 +162,10 @@ final class EventManager */ public function detach(string $group) : bool { - return $this->detachCallback($group) | $this->detachGroup($group); + $result1 = $this->detachCallback($group); + $result2 = $this->detachGroup($group); + + return $result1 || $result2; } /**