From b486bd4c7838ed3e4ddee8b3378ceab82504b21d Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Wed, 5 Feb 2020 15:44:06 +0100 Subject: [PATCH] PDOStatement::fetchColumn() can return any scalar --- src/Psalm/Internal/CallMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/CallMap.php b/src/Psalm/Internal/CallMap.php index 3dc6bdca2..c2624ed0b 100644 --- a/src/Psalm/Internal/CallMap.php +++ b/src/Psalm/Internal/CallMap.php @@ -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'],