Skip to content

Commit 8ec0578

Browse files
committed
Trying to fix tests
1 parent 6ce493b commit 8ec0578

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/mysqli/tests/mysqli_fetch_object_oo.phpt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ require_once('skipifconnectfailure.inc');
7474

7575
try {
7676
$res->fetch_object('mysqli_fetch_object_construct', null);
77-
} catch (Throwable $e) {
77+
} catch (TypeError $e) {
78+
mysqli_fetch_object($res);
7879
echo $exception->getMessage() . "\n";
7980
}
8081

@@ -128,7 +129,7 @@ require_once('skipifconnectfailure.inc');
128129
mysqli object is not fully initialized
129130
[0] Object of class mysqli could not be converted to string in %s on line %d
130131
[0] mysqli_result::fetch_object() expects at most 2 arguments, 3 given in %s on line %d
131-
ArgumentCountError: Too few arguments to function mysqli_fetch_object_construct::__construct(), 0 passed and exactly 2 expected
132+
mysqli_result::fetch_object(): Argument #2 ($constructor_args) must be of type array, null given
132133
Exception: Too few arguments to function mysqli_fetch_object_construct::__construct(), 1 passed and exactly 2 expected
133134
NULL
134135
NULL

0 commit comments

Comments
 (0)