Skip to content

Conversation

@theodorejb
Copy link
Contributor

Compare the examples on https://www.php.net/manual/en/functions.arrow.php.

According to the author of the Arrow Functions RFC, they are intended to be written in the format fn($x) => $x (without a space after the fn keyword). This is also the formatting required by the popular PER Coding Style.

Copy link
Member

@sy-records sy-records left a comment

Choose a reason for hiding this comment

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

Thanks!

@sy-records sy-records merged commit 90607bf into php:master Aug 19, 2025
3 checks passed
@theodorejb theodorejb deleted the consistent-formatting branch August 19, 2025 04:03
marcosmarcolin pushed a commit to marcosmarcolin/web-php that referenced this pull request Oct 9, 2025
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.

2 participants