@@ -75,7 +75,6 @@ class Db
7575 *
7676 * @throws ConfigurationException
7777 * @return void
78- * @throws DbException
7978 */
8079 public function setConnect (array $ connect ): void
8180 {
@@ -268,7 +267,7 @@ public function query($sql, array $params = [], array $types = []): int
268267 /**
269268 * Create new query select builder
270269 *
271- * @param array| string ... $select The selection expressions
270+ * @param string[] $select The selection expressions
272271 *
273272 * @return Query\Select
274273 */
@@ -567,7 +566,7 @@ public function fetchObjects(string $sql, array $params = [], $object = null)
567566 {
568567 $ stmt = $ this ->prepare ($ sql , $ params );
569568
570- if (is_string ($ object )) {
569+ if (\ is_string ($ object )) {
571570 // fetch to some class by name
572571 $ result = $ stmt ->fetchAll (\PDO ::FETCH_CLASS , $ object );
573572 } else {
@@ -660,7 +659,7 @@ protected function ok(): void
660659 protected function log (string $ sql , array $ context = []): void
661660 {
662661 $ sql = str_replace ('% ' , '%% ' , $ sql );
663- $ sql = preg_replace ('/\?/ ' , '"%s" ' , $ sql , count ($ context ));
662+ $ sql = preg_replace ('/\?/ ' , '"%s" ' , $ sql , \ count ($ context ));
664663
665664 // replace mask by data
666665 $ log = vsprintf ($ sql , $ context );
0 commit comments