Skip to content

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