Skip to content

Add "force-for-construct" option for LineBreakBetweenMethodArgumentFixer#216

Open
PierreMWL wants to merge 6 commits into
PedroTroller:masterfrom
PierreMWL:patch-1
Open

Add "force-for-construct" option for LineBreakBetweenMethodArgumentFixer#216
PierreMWL wants to merge 6 commits into
PedroTroller:masterfrom
PierreMWL:patch-1

Conversation

@PierreMWL

Copy link
Copy Markdown

Allow to define a new "force-for-construct" for the LineBreakBetweenMethodArgumentFixer rule.

This is useful when people use the new PHP way of declation class properties directly in the constructor and want all of them to be formated as

public function __construct(
	public string $version,
) {

@auto-assign auto-assign Bot requested a review from PedroTroller October 25, 2024 00:40
@PedroTroller

Copy link
Copy Markdown
Owner

Test-cases are missing, can you add some plz 🙏

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.

3 participants