1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-02 11:20:31 +02:00

Fix SocketHandler::getChunkSize return type, fixes #1570, closes #1576

This commit is contained in:
Jordi Boggiano
2021-09-14 15:07:52 +02:00
parent 646f0c39a3
commit 4b47204f78

View File

@@ -36,7 +36,7 @@ class SocketHandler extends AbstractProcessingHandler
private $writingTimeout = 10.0; private $writingTimeout = 10.0;
/** @var ?int */ /** @var ?int */
private $lastSentBytes = null; private $lastSentBytes = null;
/** @var int */ /** @var ?int */
private $chunkSize = null; private $chunkSize = null;
/** @var bool */ /** @var bool */
private $persistent = false; private $persistent = false;
@@ -197,7 +197,7 @@ class SocketHandler extends AbstractProcessingHandler
/** /**
* Get current chunk size * Get current chunk size
*/ */
public function getChunkSize(): int public function getChunkSize(): ?int
{ {
return $this->chunkSize; return $this->chunkSize;
} }