Skip to content

Commit 971b2db

Browse files
committed
Leverage UNKNOWN pseudo-type
1 parent 6ccd78d commit 971b2db

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
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

ibm_db2_arginfo.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: cf884b5f4060d67109e850739cae9eb3b32f8f22 */
2+
* Stub hash: 550ead612c7f1c7cc518350c4faef3620868daa3 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_TYPE_INFO(0, database, IS_STRING, 0)
@@ -16,7 +16,7 @@ ZEND_END_ARG_INFO()
1616

1717
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_db2_autocommit, 0, 1, MAY_BE_LONG|MAY_BE_BOOL)
1818
ZEND_ARG_INFO(0, connection)
19-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_LONG, 1, "null")
19+
ZEND_ARG_TYPE_INFO(0, value, IS_LONG, 0)
2020
ZEND_END_ARG_INFO()
2121

2222
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_bind_param, 0, 3, _IS_BOOL, 0)
@@ -135,13 +135,13 @@ ZEND_END_ARG_INFO()
135135
#endif
136136

137137
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_stmt_errormsg, 0, 0, IS_STRING, 0)
138-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, stmt, "null")
138+
ZEND_ARG_INFO(0, stmt)
139139
ZEND_END_ARG_INFO()
140140

141141
#define arginfo_db2_stmt_error arginfo_db2_stmt_errormsg
142142

143143
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_conn_errormsg, 0, 0, IS_STRING, 0)
144-
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, connection, "null")
144+
ZEND_ARG_INFO(0, connection)
145145
ZEND_END_ARG_INFO()
146146

147147
#define arginfo_db2_conn_error arginfo_db2_conn_errormsg

ibm_db2_legacy_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: cf884b5f4060d67109e850739cae9eb3b32f8f22 */
2+
* Stub hash: 550ead612c7f1c7cc518350c4faef3620868daa3 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_INFO(0, database)

0 commit comments

Comments
 (0)