Skip to content

Commit 0e334fe

Browse files
cmb69kamil-tekiela
andcommitted
return or die
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
1 parent 7a82d82 commit 0e334fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/mysqli/tests/test_setup/test_helpers.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,10 @@ function mysqli_check_skip_test(): void {
112112
}
113113
function mysqli_connect_or_skip() {
114114
try {
115-
default_mysqli_connect();
115+
return default_mysqli_connect();
116116
} catch (\mysqli_sql_exception) {
117117
die(sprintf("skip Can't connect to MySQL Server - [%d] %s", mysqli_connect_errno(), mysqli_connect_error()));
118118
}
119-
return $link;
120119
}
121120
function have_innodb(mysqli $link): bool {
122121
$res = $link->query("SELECT SUPPORT FROM INFORMATION_SCHEMA.ENGINES WHERE ENGINE = 'InnoDB'");

0 commit comments

Comments
 (0)