Fix return bug

This commit is contained in:
Dennis Eichhorn 2018-07-01 16:14:34 +02:00
parent 889d6e4469
commit 4c178b17a5

View File

@ -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;
}
/**