Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Sep 14, 2021
1 parent 73af18b commit 493d747
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Monolog/Handler/SocketHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ protected function streamSetChunkSize()
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);
}

Expand Down

0 comments on commit 493d747

Please sign in to comment.