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

Fix: Uncaught ArgumentCountError: Too few arguments to function WP_CLI::halt() #3242

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

burhandodhy
Copy link
Contributor

Description of the Change

This PR resolves the issue where canceling the sync with Ctrl+C results in an error. This issue originally arose after the #3202 change. The main problem was that WP_CLI::halt was expecting the error code as an argument. 

Closes #

How to test the Change

  • Run the CLI command wp elasticpress sync --setup --yes
  • Forcefully cancel the sync with Ctrl+C

Changelog Entry

Fixed - Fix: Uncaught ArgumentCountError: Too few arguments to function WP_CLI::halt()

Credits

Props @JakePT @burhandodhy

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@burhandodhy burhandodhy added this to the 4.4.1 milestone Jan 4, 2023
@felipeelia felipeelia merged commit c4f63f8 into develop Jan 4, 2023
@felipeelia felipeelia deleted the fix/error-on-sync-cancel branch January 4, 2023 13:51
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.

2 participants