Skip to content

Commit 77252af

Browse files
committed
Fix return type of odbc_data_source()
1 parent df6e8bd commit 77252af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/odbc/odbc.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function odbc_cursor($statement): string|false {}
2424

2525
#ifdef HAVE_SQLDATASOURCES
2626
/** @param resource $odbc */
27-
function odbc_data_source($odbc, int $fetch_type): array|false {}
27+
function odbc_data_source($odbc, int $fetch_type): array|null|false {}
2828
#endif
2929

3030
/**

ext/odbc/odbc_arginfo.h

Lines changed: 2 additions & 2 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: 27a50ba79ed632721ee458527ef543e4b44ee897 */
2+
* Stub hash: 245f4e9679e4da2fe2890bca50f36cd48e8a496c */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_close_all, 0, 0, IS_VOID, 0)
55
ZEND_END_ARG_INFO()
@@ -29,7 +29,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_cursor, 0, 1, MAY_BE_STRING
2929
ZEND_END_ARG_INFO()
3030

3131
#if defined(HAVE_SQLDATASOURCES)
32-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_data_source, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
32+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_data_source, 0, 2, MAY_BE_ARRAY|MAY_BE_NULL|MAY_BE_FALSE)
3333
ZEND_ARG_INFO(0, odbc)
3434
ZEND_ARG_TYPE_INFO(0, fetch_type, IS_LONG, 0)
3535
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)