Skip to content

CODING_STANDARDS.md: add rules for bool/zend_result return types #10630

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

Merged
merged 1 commit into from
Feb 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CODING_STANDARDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ rewritten to comply with these rules.
may need to control or free the memory, or when the memory in question needs
to survive between multiple requests.

1. The return type of "is" or "has" style functions should be `bool`,
which return a "yes"/"no" answer. `zend_result` is an appropriate
return value for functions that perform some operation that may
succeed or fail.

## User functions/methods naming conventions

1. Function names for user-level functions should be enclosed with in the
Expand Down