Skip to content

Comments

Replaces void return types with null#11013

Closed
nimesh-xecurify wants to merge 1 commit intoWordPress:trunkfrom
nimesh-xecurify:64704-replace-void-with-null
Closed

Replaces void return types with null#11013
nimesh-xecurify wants to merge 1 commit intoWordPress:trunkfrom
nimesh-xecurify:64704-replace-void-with-null

Conversation

@nimesh-xecurify
Copy link

Updates various functions to explicitly return null instead of implicitly returning void when no specific value is meant to be returned.

This change improves type consistency and clarity, better reflecting the function's actual behavior and aligning with modern PHP type-hinting practices.

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

Updates various functions to explicitly return `null` instead of implicitly returning `void` when no specific value is meant to be returned.

This change improves type consistency and clarity, better reflecting the function's actual behavior and aligning with modern PHP type-hinting practices.

Fixes #64704
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props nimeshatxecurify.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@nimesh-xecurify
Copy link
Author

Incomplete PR, closing in favor of #11012

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.

1 participant