mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 22:26:41 +02:00
Fix type error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user