Skip to content

Conversation

ssnepenthe
Copy link
Contributor

Just a small change - Not sure if there is interest in this sort of thing, but it is nice to have for the sake of static analysis tools.

As it is currently, both psalm and phpstan raise an issue for a function with never return type that exits via a call to WP_CLI::halt().

@ssnepenthe ssnepenthe requested a review from a team as a code owner June 27, 2022 18:16
@schlessera schlessera added this to the 2.7.0 milestone Jun 30, 2022
@schlessera schlessera merged commit 2c34680 into wp-cli:master Jun 30, 2022
@schlessera schlessera changed the title Documents return type for WP_CLI::halt() as never Documents return type for WP_CLI::halt() as never Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants