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

Remove return void that should not exist #5484

Closed
wants to merge 3 commits into from

Conversation

felixarntz
Copy link
Member

Trac ticket: https://core.trac.wordpress.org/ticket/59619


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link
Contributor

@tellthemachines tellthemachines left a comment

Choose a reason for hiding this comment

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

LGTM!

Should the docs be updated to say that @return void is also allowed in third-party libraries and PHP compatibility code? As someone from a JS background I still find it confusing that third party libs are included in and versioned together with core code, and documenting that might help explain why a search still turns up a bunch of @return voids in the codebase outside of theme files.

@felixarntz
Copy link
Member Author

Should the docs be updated to say that @return void is also allowed in third-party libraries and PHP compatibility code?

Great idea @tellthemachines! I've opened a PR in WordPress/wpcs-docs#133.

@felixarntz
Copy link
Member Author

@felixarntz felixarntz closed this Oct 16, 2023
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.

3 participants