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
3d525cbd0e
commit
13d53ecbf1
@ -54,14 +54,14 @@ 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;
|
||||
unset($context->references_in_scope['fetch_mode']);
|
||||
unset($context->references_in_scope['fetch_class']);
|
||||
|
||||
if (isset($call_args[0])
|
||||
&& ($first_arg_type = $source->getNodeTypeProvider()->getType($call_args[0]->value))
|
||||
&& $first_arg_type->isSingleIntLiteral()
|
||||
) {
|
||||
$context->references_in_scope['fetch_mode'] = $first_arg_type->getSingleIntLiteral()->value;
|
||||
$context->references_in_scope['fetch_mode'] = (string) $first_arg_type->getSingleIntLiteral()->value;
|
||||
}
|
||||
|
||||
if (isset($call_args[1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user