Skip to content

feat: Deprecate NewWithBracesFixer and proxy to NewWithParenthesesFixer#7331

Merged
keradus merged 2 commits intoPHP-CS-Fixer:masterfrom
localheinz:fix/new-with-braces
Sep 29, 2023
Merged

feat: Deprecate NewWithBracesFixer and proxy to NewWithParenthesesFixer#7331
keradus merged 2 commits intoPHP-CS-Fixer:masterfrom
localheinz:fix/new-with-braces

Conversation

@localheinz
Copy link
Copy Markdown
Member

@localheinz localheinz commented Sep 27, 2023

This pull request

  • deprecates the NewWithBracesFixer and proxies to the NewWithParenthesesFixer

Related to #5915 (comment).
Follows #7328 (comment).

@localheinz localheinz self-assigned this Sep 27, 2023
@localheinz localheinz changed the title Fix: Deprecate NewWithBracesFixer and proxy to NewWithParenthesesFixer fix: Deprecate NewWithBracesFixer and proxy to NewWithParenthesesFixer Sep 27, 2023
@localheinz localheinz force-pushed the fix/new-with-braces branch 2 times, most recently from 741b7c8 to a446bd5 Compare September 27, 2023 10:44
@localheinz localheinz marked this pull request as ready for review September 27, 2023 10:46
@localheinz localheinz removed their assignment Sep 27, 2023
@localheinz localheinz force-pushed the fix/new-with-braces branch 5 times, most recently from 8667aa8 to 5006583 Compare September 27, 2023 11:24
@localheinz localheinz self-assigned this Sep 27, 2023
@localheinz localheinz marked this pull request as draft September 27, 2023 11:25
@localheinz localheinz force-pushed the fix/new-with-braces branch 3 times, most recently from 0a29654 to 59e8790 Compare September 27, 2023 11:35
@localheinz localheinz removed their assignment Sep 27, 2023
@coveralls
Copy link
Copy Markdown

coveralls commented Sep 27, 2023

Coverage Status

coverage: 94.645% (-0.007%) from 94.652% when pulling 2282864 on localheinz:fix/new-with-braces into fad7e08 on PHP-CS-Fixer:master.

@localheinz localheinz marked this pull request as ready for review September 27, 2023 11:55
@Wirone
Copy link
Copy Markdown
Member

Wirone commented Sep 27, 2023

@localheinz unfortunately we need a rebase with conflict resolution, because of deprecation messages 🙂.

@localheinz
Copy link
Copy Markdown
Member Author

@Wirone

Rebased (the other pull requests as well)!

@Wirone Wirone changed the title fix: Deprecate NewWithBracesFixer and proxy to NewWithParenthesesFixer feat: Deprecate NewWithBracesFixer and proxy to NewWithParenthesesFixer Sep 27, 2023
*
* @covers \PhpCsFixer\Fixer\Operator\NewWithParenthesesFixer
*/
final class NewWithParenthesesFixerTest extends AbstractFixerTestCase
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

potentially we could apply same idea for all deprecations about not-duplicating tests?

(not only this PR)

(not enforcing, up to you)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I've disabled auto-merge for now, re-enable it if you really don't want to wait for @localheinz' response 😉.

Copy link
Copy Markdown
Member

@keradus keradus Sep 29, 2023

Choose a reason for hiding this comment

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

you asked me to not block things ;P this could be added as separated PR. i go for hols today and want to release this today.

you asked me to not block things ;P

@keradus keradus enabled auto-merge (squash) September 29, 2023 13:42
@Wirone Wirone disabled auto-merge September 29, 2023 13:44
@keradus keradus enabled auto-merge (squash) September 29, 2023 13:49
@keradus keradus merged commit 2abddef into PHP-CS-Fixer:master Sep 29, 2023
@localheinz localheinz deleted the fix/new-with-braces branch September 29, 2023 13:59
@localheinz
Copy link
Copy Markdown
Member Author

Thank you, @keradus and @Wirone!

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