Skip to content

Commit

Permalink
#9974 fixed return type for FETCH_COLUMN
Browse files Browse the repository at this point in the history
  • Loading branch information
thbley committed Jul 27, 2023
1 parent ee50525 commit 88ddb89
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,12 @@ private static function handleFetchAll(MethodReturnTypeProviderEvent $event): ?U
),
]);

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

0 comments on commit 88ddb89

Please sign in to comment.