Skip to content

Commit 81b2fe5

Browse files
committed
This should be mixed, not object
1 parent 2bc4a8b commit 81b2fe5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ibm_db2.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Stub for arginfo in PHP 8.
4+
* Stub for arginfo in PHP 8
55
* XXX: How do we represent optionals without defaults?
66
* @generate-function-entries
77
* @generate-legacy-arginfo
@@ -263,7 +263,7 @@ function db2_free_stmt($stmt): bool {}
263263
/**
264264
* @param resource $stmt
265265
*/
266-
function db2_result($stmt, int|string $column): object|null {}
266+
function db2_result($stmt, int|string $column): mixed|null {}
267267

268268
/**
269269
* @param resource $stmt

ibm_db2_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: 2e370e5f2b6e07922909401e3d071c90ee0b129b */
2+
* Stub hash: 63152809ed3cbc1758bf8b74972e4a2faa92185f */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_db2_connect, 0, 0, 3)
55
ZEND_ARG_TYPE_INFO(0, database, IS_STRING, 0)
@@ -192,7 +192,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_free_stmt, 0, 1, _IS_BOOL, 0
192192
ZEND_ARG_INFO(0, stmt)
193193
ZEND_END_ARG_INFO()
194194

195-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_result, 0, 2, IS_OBJECT, 1)
195+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_db2_result, 0, 2, IS_MIXED, 1)
196196
ZEND_ARG_INFO(0, stmt)
197197
ZEND_ARG_TYPE_MASK(0, column, MAY_BE_LONG|MAY_BE_STRING, NULL)
198198
ZEND_END_ARG_INFO()

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: 2e370e5f2b6e07922909401e3d071c90ee0b129b */
2+
* Stub hash: 63152809ed3cbc1758bf8b74972e4a2faa92185f */
33

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

0 commit comments

Comments
 (0)