summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-02-16 19:20:54 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-02-16 23:43:38 +0100
commitc31029f335ca1b453af799805c43c37e959ad555 (patch)
tree15f57cdb50525d2f05e0016c795a1ca7a72e17b9 /ext/odbc
parent6ee6097688a8c64e0e0ba166d48b16a93bf107a2 (diff)
downloadphp-git-c31029f335ca1b453af799805c43c37e959ad555.tar.gz
Replace @param annotations with type declarations
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/odbc.stub.php3
-rw-r--r--ext/odbc/odbc_arginfo.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/ext/odbc/odbc.stub.php b/ext/odbc/odbc.stub.php
index 9eafe46ae5..814b8fba71 100644
--- a/ext/odbc/odbc.stub.php
+++ b/ext/odbc/odbc.stub.php
@@ -53,9 +53,8 @@ function odbc_fetch_row($result_id, int $row_number = UNKNOWN): bool {}
/**
* @param resource $result_id
- * @param string|int $field
*/
-function odbc_result($result_id, $field): string|bool|null {}
+function odbc_result($result_id, string|int $field): string|bool|null {}
/** @param resource $result_id */
function odbc_result_all($result_id, string $format = ''): int|false {}
diff --git a/ext/odbc/odbc_arginfo.h b/ext/odbc/odbc_arginfo.h
index 41f00cb2a0..1a462ee0dc 100644
--- a/ext/odbc/odbc_arginfo.h
+++ b/ext/odbc/odbc_arginfo.h
@@ -69,7 +69,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_result, 0, 2, MAY_BE_STRING|MAY_BE_BOOL|MAY_BE_NULL)
ZEND_ARG_INFO(0, result_id)
- ZEND_ARG_INFO(0, field)
+ ZEND_ARG_TYPE_MASK(0, field, MAY_BE_STRING|MAY_BE_LONG)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_result_all, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)