@@ -161,15 +161,13 @@ public function rewind(): void
161161 }
162162
163163
164- #[\ReturnTypeWillChange]
165- public function current ()
164+ public function current (): mixed
166165 {
167166 return $ this ->result ;
168167 }
169168
170169
171- #[\ReturnTypeWillChange]
172- public function key ()
170+ public function key (): mixed
173171 {
174172 return $ this ->resultKey ;
175173 }
@@ -220,9 +218,8 @@ public function fetch(): ?Row
220218
221219 /**
222220 * Fetches single field.
223- * @return mixed
224221 */
225- public function fetchField ($ column = 0 )
222+ public function fetchField (int $ column = 0 ): mixed
226223 {
227224 if (func_num_args ()) {
228225 trigger_error (__METHOD__ . '() argument is deprecated. ' , E_USER_DEPRECATED );
@@ -247,7 +244,7 @@ public function fetchFields(): ?array
247244 * @param string|int $key column name used for an array key or null for numeric index
248245 * @param string|int $value column name used for an array value or null for the whole row
249246 */
250- public function fetchPairs ($ key = null , $ value = null ): array
247+ public function fetchPairs (string | int $ key = null , string | int $ value = null ): array
251248 {
252249 return Helpers::toPairs ($ this ->fetchAll (), $ key , $ value );
253250 }
@@ -268,7 +265,6 @@ public function fetchAll(): array
268265
269266 /**
270267 * Fetches all rows and returns associative tree.
271- * @param string $path associative descriptor
272268 */
273269 public function fetchAssoc (string $ path ): array
274270 {
0 commit comments