@@ -184,9 +184,8 @@ final public function isConnected(): bool
184184 /**
185185 * Returns configuration variable. If no $key is passed, returns the entire array.
186186 * @see self::__construct
187- * @return mixed
188187 */
189- final public function getConfig (string $ key = null , $ default = null )
188+ final public function getConfig (string $ key = null , $ default = null ): mixed
190189 {
191190 return $ key === null
192191 ? $ this ->config
@@ -208,21 +207,19 @@ final public function getDriver(): Driver
208207
209208 /**
210209 * Generates (translates) and executes SQL query.
211- * @param mixed ...$args
212210 * @throws Exception
213211 */
214- final public function query (...$ args ): Result
212+ final public function query (mixed ...$ args ): Result
215213 {
216214 return $ this ->nativeQuery ($ this ->translate (...$ args ));
217215 }
218216
219217
220218 /**
221219 * Generates SQL query.
222- * @param mixed ...$args
223220 * @throws Exception
224221 */
225- final public function translate (...$ args ): string
222+ final public function translate (mixed ...$ args ): string
226223 {
227224 if (!$ this ->driver ) {
228225 $ this ->connect ();
@@ -233,9 +230,8 @@ final public function translate(...$args): string
233230
234231 /**
235232 * Generates and prints SQL query.
236- * @param mixed ...$args
237233 */
238- final public function test (...$ args ): bool
234+ final public function test (mixed ...$ args ): bool
239235 {
240236 try {
241237 Helpers::dump ($ this ->translate (...$ args ));
@@ -254,10 +250,9 @@ final public function test(...$args): bool
254250
255251 /**
256252 * Generates (translates) and returns SQL query as DataSource.
257- * @param mixed ...$args
258253 * @throws Exception
259254 */
260- final public function dataSource (...$ args ): DataSource
255+ final public function dataSource (mixed ...$ args ): DataSource
261256 {
262257 return new DataSource ($ this ->translate (...$ args ), $ this );
263258 }
@@ -399,10 +394,7 @@ public function rollback(string $savepoint = null): void
399394 }
400395
401396
402- /**
403- * @return mixed
404- */
405- public function transaction (callable $ callback )
397+ public function transaction (callable $ callback ): mixed
406398 {
407399 $ this ->begin ();
408400 try {
@@ -494,45 +486,40 @@ public function substitute(string $value): string
494486
495487 /**
496488 * Executes SQL query and fetch result - shortcut for query() & fetch().
497- * @param mixed ...$args
498489 * @throws Exception
499490 */
500- public function fetch (...$ args ): ?Row
491+ public function fetch (mixed ...$ args ): ?Row
501492 {
502493 return $ this ->query ($ args )->fetch ();
503494 }
504495
505496
506497 /**
507498 * Executes SQL query and fetch results - shortcut for query() & fetchAll().
508- * @param mixed ...$args
509499 * @return Row[]|array[]
510500 * @throws Exception
511501 */
512- public function fetchAll (...$ args ): array
502+ public function fetchAll (mixed ...$ args ): array
513503 {
514504 return $ this ->query ($ args )->fetchAll ();
515505 }
516506
517507
518508 /**
519509 * Executes SQL query and fetch first column - shortcut for query() & fetchSingle().
520- * @param mixed ...$args
521- * @return mixed
522510 * @throws Exception
523511 */
524- public function fetchSingle (...$ args )
512+ public function fetchSingle (mixed ...$ args ): mixed
525513 {
526514 return $ this ->query ($ args )->fetchSingle ();
527515 }
528516
529517
530518 /**
531519 * Executes SQL query and fetch pairs - shortcut for query() & fetchPairs().
532- * @param mixed ...$args
533520 * @throws Exception
534521 */
535- public function fetchPairs (...$ args ): array
522+ public function fetchPairs (mixed ...$ args ): array
536523 {
537524 return $ this ->query ($ args )->fetchPairs ();
538525 }
0 commit comments