Skip to content

Commit 3f9e6d9

Browse files
committed
Leverage UNKNOWN pseudo-type
1 parent 6ccd78d commit 3f9e6d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ibm_db2.stub.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function db2_pconnect(string $database, ?string $username, ?string $password, ar
2727
/**
2828
* @param resource $connection
2929
*/
30-
function db2_autocommit($connection, ?int $value = null): int|bool {}
30+
function db2_autocommit($connection, int $value = UNKNOWN): int|bool {}
3131

3232
/**
3333
* @param resource $connection
@@ -177,22 +177,22 @@ function db2_execute_many($stmt, array $options = []): int|false {}
177177
/**
178178
* @param resource $stmt
179179
*/
180-
function db2_stmt_errormsg($stmt = null): string {}
180+
function db2_stmt_errormsg($stmt = UNKNOWN): string {}
181181

182182
/**
183183
* @param resource $stmt
184184
*/
185-
function db2_stmt_error($stmt = null): string {}
185+
function db2_stmt_error($stmt = UNKNOWN): string {}
186186

187187
/**
188188
* @param resource $connection
189189
*/
190-
function db2_conn_errormsg($connection = null): string {}
190+
function db2_conn_errormsg($connection = UNKNOWN): string {}
191191

192192
/**
193193
* @param resource $connection
194194
*/
195-
function db2_conn_error($connection = null): string {}
195+
function db2_conn_error($connection = UNKNOWN): string {}
196196

197197
/**
198198
* @param resource $stmt

0 commit comments

Comments
 (0)