Skip to content

Commit 83ead55

Browse files
committed
Fix the default value of $ctorArgs param in PDOStatement::fetchObject()
1 parent c2a06f5 commit 83ead55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/pdo/pdo_stmt.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function fetchAll(int $mode = PDO::FETCH_DEFAULT, mixed ...$args) {}
4141
public function fetchColumn(int $column = 0) {}
4242

4343
/** @return object|false */
44-
public function fetchObject(?string $class = "stdClass", ?array $ctorArgs = null) {}
44+
public function fetchObject(?string $class = "stdClass", array $ctorArgs = UNKNOWN) {}
4545

4646
/** @return mixed */
4747
public function getAttribute(int $name) {}

ext/pdo/pdo_stmt_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: 80860ee99befe1258900120f0c226688f6606c6f */
2+
* Stub hash: 9b654220433724fc075d2f1afd01ae4c05a70731 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_bindColumn, 0, 0, 2)
55
ZEND_ARG_TYPE_MASK(0, column, MAY_BE_STRING|MAY_BE_LONG, NULL)
@@ -55,7 +55,7 @@ ZEND_END_ARG_INFO()
5555

5656
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_fetchObject, 0, 0, 0)
5757
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, class, IS_STRING, 1, "\"stdClass\"")
58-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, ctorArgs, IS_ARRAY, 1, "null")
58+
ZEND_ARG_TYPE_INFO(0, ctorArgs, IS_ARRAY, 0)
5959
ZEND_END_ARG_INFO()
6060

6161
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_getAttribute, 0, 0, 1)

0 commit comments

Comments
 (0)