Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure getDuplicateContacts always returns an array #22394

Merged
merged 1 commit into from Jan 7, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Ensure getDuplicateContacts always returns an array

Before

The function returns an array but is not 'forced' to do so it is theoretically possible a hook could cause it to return NULL or another empty variant

After

Always returns an array - calling code no longer needs to check

Technical Details

Comments

Calling code already handles an empty array as that is what it would receive - unless the hook set it to NULL
@civibot
Copy link

civibot bot commented Jan 7, 2022

(Standard links)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants