Skip to content

Commit 0b88704

Browse files
mysqli_field_seek return type changed to true (#11948)
1 parent 27fb8d1 commit 0b88704

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
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: 2 additions & 2 deletions
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
@@ -1457,7 +1457,7 @@ function mysqli_fetch_column(mysqli_result $result, int $column = 0): null|int|f
14571457

14581458
function mysqli_field_count(mysqli $mysql): int {}
14591459

1460-
function mysqli_field_seek(mysqli_result $result, int $index): bool {}
1460+
function mysqli_field_seek(mysqli_result $result, int $index): true {} // TODO make return type void
14611461

14621462
function mysqli_field_tell(mysqli_result $result): int {}
14631463

ext/mysqli/mysqli_arginfo.h

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

0 commit comments

Comments
 (0)