Skip to content

Commit fab49ec

Browse files
committed
Made Util::exec() parameters type aware;
Added an Util::exec() test; CS fixes.
1 parent 00c0fcf commit fab49ec

File tree

5 files changed

+324
-170
lines changed

5 files changed

+324
-170
lines changed

src/PEAR2/Net/RouterOS/Client.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,13 @@ public function loop($timeout_s = null, $timeout_us = 0)
532532
}
533533
} catch (SocketException $e) {
534534
if ($e->getCode() !== 11800) {
535+
// @codeCoverageIgnoreStart
536+
// It's impossible to reliably cause any other SocketException.
537+
// This line is only here in case the unthinkable happens:
538+
// The connection terminates just after it was supposedly
539+
// about to send back some data.
535540
throw $e;
541+
// @codeCoverageIgnoreEnd
536542
}
537543
}
538544
return $this->getPendingRequestsCount() !== 0;

0 commit comments

Comments
 (0)