Skip to content

Skip argument if value equals default value#4368

Merged
TomasVotruba merged 2 commits intorectorphp:mainfrom
stefantalen:issue/rector-symfony_397
Jun 27, 2023
Merged

Skip argument if value equals default value#4368
TomasVotruba merged 2 commits intorectorphp:mainfrom
stefantalen:issue/rector-symfony_397

Conversation

@stefantalen
Copy link
Copy Markdown
Contributor

@stefantalen stefantalen changed the title Adding check for default value Skip argument if value equals default value Jun 27, 2023
@stefantalen stefantalen marked this pull request as draft June 27, 2023 13:52
@TomasVotruba
Copy link
Copy Markdown
Member

Thanks!

Could you add a test fixture to this rule so we have it covered in one place?

@stefantalen
Copy link
Copy Markdown
Contributor Author

@TomasVotruba The failing test expects a default value to be set, however this PR fixes that behaviour.

Should I remove the Symfony33Test from rector-src?

@stefantalen stefantalen marked this pull request as ready for review June 27, 2023 15:00
@TomasVotruba
Copy link
Copy Markdown
Member

Thanks 👍

I'll merge them both to be sure :)

@TomasVotruba TomasVotruba merged commit b408d9e into rectorphp:main Jun 27, 2023
@stefantalen stefantalen deleted the issue/rector-symfony_397 branch June 27, 2023 16:30
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.

2 participants