|
33 | 33 | * @property mixed $encrypt |
34 | 34 | * @property array $failover |
35 | 35 | * @property string $hostname |
36 | | - * @property mixed $lastQuery |
| 36 | + * @property Query $lastQuery |
37 | 37 | * @property string $password |
38 | 38 | * @property bool $pConnect |
39 | 39 | * @property int|string $port |
@@ -154,7 +154,7 @@ abstract class BaseConnection implements ConnectionInterface |
154 | 154 | /** |
155 | 155 | * Encryption flag/data |
156 | 156 | * |
157 | | - * @var mixed |
| 157 | + * @var array|bool |
158 | 158 | */ |
159 | 159 | protected $encrypt = false; |
160 | 160 |
|
@@ -185,7 +185,7 @@ abstract class BaseConnection implements ConnectionInterface |
185 | 185 | * The last query object that was executed |
186 | 186 | * on this connection. |
187 | 187 | * |
188 | | - * @var mixed |
| 188 | + * @var Query |
189 | 189 | */ |
190 | 190 | protected $lastQuery; |
191 | 191 |
|
@@ -932,7 +932,7 @@ public function prepare(Closure $func, array $options = []) |
932 | 932 | /** |
933 | 933 | * Returns the last query's statement object. |
934 | 934 | * |
935 | | - * @return mixed |
| 935 | + * @return Query |
936 | 936 | */ |
937 | 937 | public function getLastQuery() |
938 | 938 | { |
@@ -1149,9 +1149,10 @@ private function protectDotItem(string $item, string $alias, bool $protectIdenti |
1149 | 1149 | * |
1150 | 1150 | * This function escapes column and table names |
1151 | 1151 | * |
1152 | | - * @param mixed $item |
| 1152 | + * @param array|string $item |
1153 | 1153 | * |
1154 | | - * @return mixed |
| 1154 | + * @return array|string |
| 1155 | + * @phpstan-return ($item is array ? array : string) |
1155 | 1156 | */ |
1156 | 1157 | public function escapeIdentifiers($item) |
1157 | 1158 | { |
@@ -1231,9 +1232,10 @@ abstract public function affectedRows(): int; |
1231 | 1232 | * Escapes data based on type. |
1232 | 1233 | * Sets boolean and null types |
1233 | 1234 | * |
1234 | | - * @param mixed $str |
| 1235 | + * @param array|bool|float|int|object|string|null $str |
1235 | 1236 | * |
1236 | | - * @return mixed |
| 1237 | + * @return array|float|int|string |
| 1238 | + * @phpstan-return ($str is array ? array : float|int|string) |
1237 | 1239 | */ |
1238 | 1240 | public function escape($str) |
1239 | 1241 | { |
|
0 commit comments