diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index ed8af0052..864e3245d 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -9884,7 +9884,7 @@ return [ 'PDOStatement::fetch' => ['mixed', 'how='=>'int', 'orientation='=>'int', 'offset='=>'int'], 'PDOStatement::fetchAll' => ['array|false', 'how='=>'int', 'fetch_argument='=>'int|string|callable', 'ctor_args='=>'?array'], 'PDOStatement::fetchColumn' => ['string|int|float|bool|null', 'column_number='=>'int'], -'PDOStatement::fetchObject' => ['object|false', 'class_name='=>'string', 'ctor_args='=>'?array'], +'PDOStatement::fetchObject' => ['object|false', 'class_name='=>'string', 'ctor_args='=>'array'], 'PDOStatement::getAttribute' => ['mixed', 'attribute'=>'int'], 'PDOStatement::getColumnMeta' => ['array|false', 'column'=>'int'], 'PDOStatement::nextRowset' => ['bool'], diff --git a/stubs/pdo.php b/stubs/pdo.php index cc034788f..695b1f438 100644 --- a/stubs/pdo.php +++ b/stubs/pdo.php @@ -6,7 +6,8 @@ class PdoStatement { * * @template T * @param class-string $class + * @param array $ctorArgs * @return false|T */ - public function fetchObject($class = "stdclass") {} + public function fetchObject($class = "stdclass", array $ctorArgs = array()) {} }