File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ require_once('skipifconnectfailure.inc');
74
74
75
75
try {
76
76
$ res ->fetch_object ('mysqli_fetch_object_construct ' , null );
77
- } catch (Throwable $ e ) {
77
+ } catch (TypeError $ e ) {
78
+ mysqli_fetch_object ($ res );
78
79
echo $ exception ->getMessage () . "\n" ;
79
80
}
80
81
@@ -128,7 +129,7 @@ require_once('skipifconnectfailure.inc');
128
129
mysqli object is not fully initialized
129
130
[0] Object of class mysqli could not be converted to string in %s on line %d
130
131
[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
132
133
Exception: Too few arguments to function mysqli_fetch_object_construct::__construct(), 1 passed and exactly 2 expected
133
134
NULL
134
135
NULL
You can’t perform that action at this time.
0 commit comments