diff --git a/src/Integrations/Laravel/Connection.php b/src/Integrations/Laravel/Connection.php index cea5f06..f681383 100644 --- a/src/Integrations/Laravel/Connection.php +++ b/src/Integrations/Laravel/Connection.php @@ -144,9 +144,13 @@ protected function createClientFor($server, TransportInterface $transport) * * @return \Tinderbox\Clickhouse\Interfaces\TransportInterface */ - protected function createTransport(array $options): TransportInterface + protected function createTransport(array $options) : TransportInterface { - return new HttpTransport($options['client'] ?? null, $options['timeout'] ?? 5.0); + $client = $options['client'] ?? null; + + unset($options['client']); + + return new HttpTransport($client, $options); } /**