PsiElement arrayValue = ((AssignmentExpression) parent).getValue();
if(arrayValue instanceof PhpTypedElement) {
variableTypes = ((PhpTypedElement) arrayValue).getType().getTypes();
}
collectedTypes.put(variableName, new PsiVariable(variableTypes, ((AssignmentExpression) parent).getValue()));
} else {
collectedTypes.put(variableName, new PsiVariable(variableTypes, null));
}
}