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

Evaluate 0 and false string as false booleans as well #2547

Merged
merged 9 commits into from
Jan 25, 2022

Conversation

oscarssanchez
Copy link
Contributor

Description of the Change

Fixes #2528

Alternate Designs

Benefits

Possible Drawbacks

Verification Process

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Applicable Issues

Changelog Entry

@mckdemps mckdemps added this to the 4.0.0 (beta 2) milestone Jan 11, 2022
Copy link
Contributor

@Rahmon Rahmon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about adding tests for '0' and 'false'? E.g.: https://github.com/10up/ElasticPress/blob/develop/tests/php/features/TestComments.php#L119

Other than that, looks good @oscarssanchez

@Rahmon Rahmon assigned oscarssanchez and unassigned Rahmon Jan 13, 2022
@Rahmon Rahmon assigned oscarssanchez and unassigned Rahmon Jan 19, 2022
@felipeelia felipeelia merged commit 732f35a into develop Jan 25, 2022
@felipeelia felipeelia deleted the fix/ep-integrate-evaluation branch January 25, 2022 14:09
@felipeelia felipeelia mentioned this pull request Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Evaluate 'falsey' values for ep_integrate
4 participants