1
0
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:
Thomas Bley 2023-07-27 16:11:32 +02:00
parent ee505259aa
commit 88ddb89763

View File

@ -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(),
]),
),
]);