Skip to content

Commit 65e8211

Browse files
committed
Added @-operator error suppression to EventBase::loop() calls.
1 parent 238570f commit 65e8211

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ExtEventLoop.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ public function tick()
164164
{
165165
$this->nextTickQueue->tick();
166166

167-
$this->eventBase->loop(EventBase::LOOP_ONCE | EventBase::LOOP_NONBLOCK);
167+
// @-suppression: https://github.com/reactphp/react/pull/234#discussion-diff-7759616R226
168+
@$this->eventBase->loop(EventBase::LOOP_ONCE | EventBase::LOOP_NONBLOCK);
168169
}
169170

170171
/**
@@ -181,7 +182,8 @@ public function run()
181182
break;
182183
}
183184

184-
$this->eventBase->loop(EventBase::LOOP_ONCE);
185+
// @-suppression: https://github.com/reactphp/react/pull/234#discussion-diff-7759616R226
186+
@$this->eventBase->loop(EventBase::LOOP_ONCE);
185187
}
186188
}
187189

LoopInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function isTimerActive(TimerInterface $timer);
9191
* Callbacks are guaranteed to be executed in the order they are enqueued,
9292
* before any timer or stream events.
9393
*
94-
* @param callable $listner The callback to invoke.
94+
* @param callable $listener The callback to invoke.
9595
*/
9696
public function nextTick(callable $listener);
9797

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy