1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-30 09:50:26 +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;
/** @var ?int */
private $lastSentBytes = null;
/** @var int */
/** @var ?int */
private $chunkSize = null;
/** @var bool */
private $persistent = false;
@@ -197,7 +197,7 @@ class SocketHandler extends AbstractProcessingHandler
/**
* Get current chunk size
*/
public function getChunkSize(): int
public function getChunkSize(): ?int
{
return $this->chunkSize;
}