@@ -206,16 +206,14 @@ abstract class BaseConnection implements ConnectionInterface
206206 /**
207207 * Connection ID
208208 *
209- * @var false|object|resource
210- * @phpstan-var false|TConnection
209+ * @var false|TConnection
211210 */
212211 public $ connID = false ;
213212
214213 /**
215214 * Result ID
216215 *
217- * @var false|object|resource
218- * @phpstan-var false|TResult
216+ * @var false|TResult
219217 */
220218 public $ resultID = false ;
221219
@@ -498,8 +496,7 @@ abstract protected function _close();
498496 /**
499497 * Create a persistent database connection.
500498 *
501- * @return false|object|resource
502- * @phpstan-return false|TConnection
499+ * @return false|TConnection
503500 */
504501 public function persistentConnect ()
505502 {
@@ -512,8 +509,7 @@ public function persistentConnect()
512509 * get that connection. If you pass either alias in and only a single
513510 * connection is present, it must return the sole connection.
514511 *
515- * @return false|object|resource
516- * @phpstan-return TConnection
512+ * @return false|TConnection
517513 */
518514 public function getConnection (?string $ alias = null )
519515 {
@@ -592,8 +588,7 @@ public function addTableAlias(string $alias)
592588 /**
593589 * Executes the query against the database.
594590 *
595- * @return false|object|resource
596- * @phpstan-return false|TResult
591+ * @return false|TResult
597592 */
598593 abstract protected function execute (string $ sql );
599594
@@ -607,8 +602,7 @@ abstract protected function execute(string $sql);
607602 *
608603 * @param array|string|null $binds
609604 *
610- * @return BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query
611- * @phpstan-return BaseResult<TConnection, TResult>|bool|Query
605+ * @return BaseResult<TConnection, TResult>|bool|Query
612606 *
613607 * @todo BC set $queryClass default as null in 4.1
614608 */
@@ -726,8 +720,7 @@ public function query(string $sql, $binds = null, bool $setEscapeFlags = true, s
726720 * is performed, nor are transactions handled. Simply takes a raw
727721 * query string and returns the database-specific result id.
728722 *
729- * @return false|object|resource
730- * @phpstan-return false|TResult
723+ * @return false|TResult
731724 */
732725 public function simpleQuery (string $ sql )
733726 {
@@ -1065,8 +1058,7 @@ public function getConnectDuration(int $decimals = 6): string
10651058 * @param bool $protectIdentifiers Protect table or column names?
10661059 * @param bool $fieldExists Supplied $item contains a column name?
10671060 *
1068- * @return array|string
1069- * @phpstan-return ($item is array ? array : string)
1061+ * @return ($item is array ? array : string)
10701062 */
10711063 public function protectIdentifiers ($ item , bool $ prefixSingle = false , ?bool $ protectIdentifiers = null , bool $ fieldExists = true )
10721064 {
@@ -1270,8 +1262,7 @@ private function escapeTableName(TableName $tableName): string
12701262 *
12711263 * @param array|string $item
12721264 *
1273- * @return array|string
1274- * @phpstan-return ($item is array ? array : string)
1265+ * @return ($item is array ? array : string)
12751266 */
12761267 public function escapeIdentifiers ($ item )
12771268 {
@@ -1355,8 +1346,7 @@ abstract public function affectedRows(): int;
13551346 *
13561347 * @param array|bool|float|int|object|string|null $str
13571348 *
1358- * @return array|float|int|string
1359- * @phpstan-return ($str is array ? array : float|int|string)
1349+ * @return ($str is array ? array : float|int|string)
13601350 */
13611351 public function escape ($ str )
13621352 {
@@ -1787,8 +1777,7 @@ public function isWriteType($sql): bool
17871777 *
17881778 * Must return an array with keys 'code' and 'message':
17891779 *
1790- * @return array<string, int|string|null>
1791- * @phpstan-return array{code: int|string|null, message: string|null}
1780+ * @return array{code: int|string|null, message: string|null}
17921781 */
17931782 abstract public function error (): array ;
17941783
0 commit comments