mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
#9974 cleanup
This commit is contained in:
parent
8a6774ba82
commit
3d525cbd0e
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user