1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00
This commit is contained in:
Thomas Bley 2023-07-27 01:48:00 +02:00
parent 8a6774ba82
commit 3d525cbd0e

View File

@ -54,6 +54,9 @@ class PdoStatementReturnTypeProvider implements MethodReturnTypeProviderInterfac
$call_args = $event->getCallArgs();
$context = $event->getContext();
$context->references_in_scope['fetch_mode'] = null;
$context->references_in_scope['fetch_class'] = null;
if (isset($call_args[0])
&& ($first_arg_type = $source->getNodeTypeProvider()->getType($call_args[0]->value))
&& $first_arg_type->isSingleIntLiteral()