-
Notifications
You must be signed in to change notification settings - Fork 7
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 exit after WP_CLI::error #152
Conversation
Oh no! PHPCS goes berserk, does not know that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good but it seems to have confused the coding standards check a bit. Maybe that’s why it was implemented this way originally. I’ll see there’s an updated standard version.
Exiting in a function is very-very-very bad design. |
It does make things clearer for sure, I agree on the design of |
Done 🍏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor change still sorry - I left suggestions inline
Co-authored-by: Robert O'Rourke <[email protected]>
Co-authored-by: Robert O'Rourke <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again!
Glad to contribute. |
WP_CLI::error
already exits.