Browse Source

fix(eventdispatcher): Don't use all evaluating "or"

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/38955/head
Joas Schilling 2 years ago
parent
commit
19a0425aeb
No known key found for this signature in database GPG Key ID: 74434EFE0D2E2205
  1. 2
      lib/private/EventDispatcher/EventDispatcher.php

2
lib/private/EventDispatcher/EventDispatcher.php

@ -58,7 +58,7 @@ class EventDispatcher implements IEventDispatcher {
// inject the event dispatcher into the logger
// this is done here because there is a cyclic dependency between the event dispatcher and logger
if ($this->logger instanceof Log or $this->logger instanceof Log\PsrLoggerAdapter) {
if ($this->logger instanceof Log || $this->logger instanceof Log\PsrLoggerAdapter) {
$this->logger->setEventDispatcher($this);
}
}

Loading…
Cancel
Save