Skip to content

Commit

Permalink
Fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Dec 14, 2020
1 parent 3ee78ae commit 546dc08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Monolog/Handler/SocketHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class SocketHandler extends AbstractProcessingHandler
/** @var resource|null */
private $resource;
/** @var float */
private $timeout = 0;
private $timeout = 0.0;
/** @var float */
private $writingTimeout = 10;
private $writingTimeout = 10.0;
private $lastSentBytes = null;
/** @var int */
private $chunkSize = null;
Expand Down Expand Up @@ -356,7 +356,7 @@ private function writeToSocket(string $data): void
private function writingIsTimedOut(int $sent): bool
{
// convert to ms
if (0 === $this->writingTimeout) {
if (0.0 == $this->writingTimeout) {
return false;
}

Expand Down

0 comments on commit 546dc08

Please sign in to comment.