Skip to content

Commit 6404570

Browse files
committed
Fix throw keyword
1 parent 51144d8 commit 6404570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PluginClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private function createPluginChain($pluginList, callable $clientCallable)
138138
$firstCalls = 0;
139139
$firstCallable = function (RequestInterface $request) use ($lastCallable, &$firstCalls) {
140140
if ($firstCalls > $this->options['max_restarts']) {
141-
return new LoopException('Too many restarts in plugin client', $request);
141+
throw new LoopException('Too many restarts in plugin client', $request);
142142
}
143143

144144
++$firstCalls;

0 commit comments

Comments
 (0)