@@ -93,11 +93,11 @@ public function database($db)
9393 }
9494
9595 /**
96- * @return float
96+ * @return int
9797 */
98- public function getTimeOut (): float
98+ public function getTimeOut (): int
9999 {
100- return $ this ->get ('max_execution_time ' );
100+ return intval ( $ this ->get ('max_execution_time ' ) );
101101 }
102102
103103 /**
@@ -172,10 +172,13 @@ public function makeSessionId()
172172 }
173173
174174 /**
175- * @param float $time
175+ *
176+ * max_execution_time - is integer in Seconds clickhouse source
177+ *
178+ * @param int $time
176179 * @return $this
177180 */
178- public function max_execution_time (float $ time )
181+ public function max_execution_time (int $ time )
179182 {
180183 $ this ->set ('max_execution_time ' ,$ time );
181184 return $ this ;
@@ -193,7 +196,7 @@ public function getSettings()
193196 * @param array $settings_array
194197 * @return $this
195198 */
196- public function apply ($ settings_array )
199+ public function apply (array $ settings_array )
197200 {
198201 foreach ($ settings_array as $ key => $ value ) {
199202 $ this ->set ($ key , $ value );
@@ -205,15 +208,15 @@ public function apply($settings_array)
205208 /**
206209 * @param int|bool $flag
207210 */
208- public function setReadOnlyUser ($ flag )
211+ public function setReadOnlyUser (mixed $ flag ): void
209212 {
210213 $ this ->_ReadOnlyUser = $ flag ;
211214 }
212215
213216 /**
214217 * @return bool
215218 */
216- public function isReadOnlyUser ()
219+ public function isReadOnlyUser (): bool
217220 {
218221 return $ this ->_ReadOnlyUser ;
219222 }
@@ -222,7 +225,7 @@ public function isReadOnlyUser()
222225 * @param string $name
223226 * @return mixed|null
224227 */
225- public function getSetting ($ name )
228+ public function getSetting (string $ name )
226229 {
227230 if (!isset ($ this ->settings [$ name ])) {
228231 return null ;
0 commit comments