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

[REF] Add strict types to Utils_Mail::Send #20171

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

[REF] Add strict types to Utils_Mail::Send

Before

Function onl returns a bool - but code that calls it handles the possibility of it returning a PEAR_Error, some unused variables

After

Function explicitly only returns a bool so the next person won't need to double check the function to be sure they can remove the PEAR error handling

Technical Details

Comments

The function only returns a bool - this makes that explicit / forced and also removes handling for it
to return a PEAR_Error in one place that calls it. A couple of unused params are removed
@civibot
Copy link

civibot bot commented Apr 27, 2021

(Standard links)

@civibot civibot bot added the master label Apr 27, 2021
@seamuslee001
Copy link
Contributor

Looks good to me merging

@seamuslee001 seamuslee001 merged commit b5c40e2 into civicrm:master Apr 27, 2021
@seamuslee001 seamuslee001 deleted the actsh branch April 27, 2021 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants