Skip to content

Added rule for splitting multiple methods arguments into multiline if there is more than one - #13

Merged
ViniTou merged 6 commits into
mainfrom
multiline-rule
Oct 20, 2025
Merged

ViniTou merged 6 commits into
mainfrom
multiline-rule

Conversation

@ViniTou

@ViniTou ViniTou commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

🎫 Issue IBX-XXXXX

Description:

For QA:

Documentation:

@ViniTou ViniTou changed the title Added rule for splitting multiple methods arguments into multiline if… Added rule for splitting multiple methods arguments into multiline if there is more than one Oct 10, 2025
@ViniTou
ViniTou requested a review from a team October 10, 2025 14:05

@alongosz alongosz left a comment

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.

+1 but we need to address a static analysis issue

self::assertSame($expected, $tokens->generateCode());
}

public static function provideFixCases(): iterable

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.

Missing iterable type. Looks like phpstan.neon never got updated paths when we introduced ./tests directory 😅

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yup, that was the case, added to phpstan configuration and fixed all issues.
Added tests folder to phpstan

@ViniTou
ViniTou requested a review from a team October 13, 2025 06:19
Comment thread src/lib/PhpCsFixer/Rule/MultilineParametersFixer.php
Comment thread src/lib/PhpCsFixer/Rule/MultilineParametersFixer.php Outdated
Comment thread src/lib/PhpCsFixer/Rule/MultilineParametersFixer.php Outdated
Comment thread tests/lib/PhpCsFixer/Rule/MultilineParametersFixerTest.php Outdated

@konradoboza konradoboza left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

+1 but this one wasn't yet fixed #13 (comment).

@konradoboza
konradoboza requested a review from a team October 13, 2025 06:32
Base automatically changed from fix-ruleset-versioning to main October 14, 2025 11:17
@adamwojs

Copy link
Copy Markdown
Member

@ViniTou Rebase is needed here

@sonarqubecloud

Copy link
Copy Markdown

@ViniTou
ViniTou merged commit 329dc21 into main Oct 20, 2025
5 checks passed
@ViniTou
ViniTou deleted the multiline-rule branch October 20, 2025 13:55
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