Skip to content

New with braces #540

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

Closed
wants to merge 1 commit into from
Closed

Conversation

MathiasReker
Copy link
Contributor

All instances created with new keyword must (not) be followed by braces.

All instances created with new keyword must (not) be followed by braces.
@kamil-tekiela
Copy link
Member

Unless our coding standard mandates this, I wouldn't change it. It improves nothing.

@MathiasReker
Copy link
Contributor Author

This is the only place that differs.

@localheinz
Copy link
Contributor

@kamil-tekiela

Is the coding standard documented anywhere?

For all I can tell, a coding standard is currently not enforced by tooling.

Copy link
Contributor

@localheinz localheinz left a comment

Choose a reason for hiding this comment

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

👍

@cmb69
Copy link
Member

cmb69 commented Jun 17, 2022

No, we don't have agreed on a CS. That should be discussed on the PHP php.net internal infrastructure discussion ML.

@localheinz
Copy link
Contributor

For reference, see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.8.0/doc/rules/operator/new_with_braces.rst.

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.

4 participants