mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
#9974 fixed return type for FETCH_COLUMN
This commit is contained in:
parent
ee505259aa
commit
88ddb89763
@ -216,13 +216,12 @@ class PdoStatementReturnTypeProvider implements MethodReturnTypeProviderInterfac
|
||||
),
|
||||
]);
|
||||
|
||||
case 7: // PDO::FETCH_COLUMN - scalar|null|false
|
||||
case 7: // PDO::FETCH_COLUMN - list<scalar|null>
|
||||
return new Union([
|
||||
Type::getListAtomic(
|
||||
new Union([
|
||||
new TScalar(),
|
||||
new TNull(),
|
||||
new TFalse(),
|
||||
]),
|
||||
),
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user