1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

PDOStatement::fetchColumn() can return any scalar

This commit is contained in:
Benjamin Morel 2020-02-05 15:44:06 +01:00 committed by Matthew Brown
parent 50fc50fab0
commit b486bd4c78

View File

@ -9772,7 +9772,7 @@ return [
'PDOStatement::execute' => ['bool', 'bound_input_params='=>'?array'],
'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|null|false', 'column_number='=>'int'],
'PDOStatement::fetchColumn' => ['string|int|float|bool|null', 'column_number='=>'int'],
'PDOStatement::fetchObject' => ['mixed|false', 'class_name='=>'string', 'ctor_args='=>'?array'],
'PDOStatement::getAttribute' => ['mixed', 'attribute'=>'int'],
'PDOStatement::getColumnMeta' => ['array|false', 'column'=>'int'],