mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 21:56:31 +02:00
Fix comparison
This commit is contained in:
@@ -26,9 +26,9 @@ class SocketHandler extends AbstractProcessingHandler
|
|||||||
/** @var resource|null */
|
/** @var resource|null */
|
||||||
private $resource;
|
private $resource;
|
||||||
/** @var float */
|
/** @var float */
|
||||||
private $timeout = 0;
|
private $timeout = 0.0;
|
||||||
/** @var float */
|
/** @var float */
|
||||||
private $writingTimeout = 10;
|
private $writingTimeout = 10.0;
|
||||||
private $lastSentBytes = null;
|
private $lastSentBytes = null;
|
||||||
/** @var int */
|
/** @var int */
|
||||||
private $chunkSize = null;
|
private $chunkSize = null;
|
||||||
@@ -356,7 +356,7 @@ class SocketHandler extends AbstractProcessingHandler
|
|||||||
private function writingIsTimedOut(int $sent): bool
|
private function writingIsTimedOut(int $sent): bool
|
||||||
{
|
{
|
||||||
// convert to ms
|
// convert to ms
|
||||||
if (0 === $this->writingTimeout) {
|
if (0.0 == $this->writingTimeout) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user