1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 06:36:46 +02:00

Fix type error

This commit is contained in:
Jordi Boggiano
2021-09-14 15:30:26 +02:00
parent 73af18b61a
commit 493d7475e6

View File

@@ -265,6 +265,10 @@ class SocketHandler extends AbstractProcessingHandler
throw new \LogicException('streamSetChunkSize called but $this->resource is not a resource');
}
if (null === $this->chunkSize) {
throw new \LogicException('streamSetChunkSize called but $this->chunkSize is not set');
}
return stream_set_chunk_size($this->resource, $this->chunkSize);
}