Skip to content

Commit 44f394d

Browse files
committed
Change return type for mysqli_result::field_seek
1 parent 5f5d12c commit 44f394d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

UPGRADING

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ PHP 8.3 UPGRADE NOTES
289289
constructor.
290290
. mysqli_poll now raises a ValueError when the read nor error arguments are
291291
passed.
292+
. mysqli_field_seek and mysqli_result::field_seek now specify return type
293+
as true instead of bool.
292294

293295
- ODBC
294296
. odbc_autocommit() now accepts null for the $enable parameter.

ext/mysqli/mysqli.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ public function fetch_column(int $column = 0): null|int|float|string|false {}
11441144
* @tentative-return-type
11451145
* @alias mysqli_field_seek
11461146
*/
1147-
public function field_seek(int $index): bool {}
1147+
public function field_seek(int $index): true {} // TODO make return type void
11481148

11491149
/**
11501150
* @tentative-return-type

ext/mysqli/mysqli_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)