Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rename parameters to match parents#8284

Merged
ostrolucky merged 2 commits into
doctrine:2.7from
orklah:psalm-fixes
Sep 26, 2020
Merged

rename parameters to match parents#8284
ostrolucky merged 2 commits into
doctrine:2.7from
orklah:psalm-fixes

Conversation

@orklah
Copy link
Copy Markdown
Contributor

@orklah orklah commented Sep 25, 2020

Hi,

This PR propose changing parameter names when they don't match parents.

This is suggested by the lastest version of Psalm in preparation for PHP 8 named arguments.

Here is the rationale: https://psalm.dev/docs/running_psalm/issues/ParamNameMismatch/

This may not be something we care about or that we want to support. In that case, I will change Psalm's config to ignore those in the future.

I don't believe changing parameter names is a BC break for now so we may want to do this now rather than a few months down when PHP8 will be available.

@ostrolucky ostrolucky merged commit 79cdcde into doctrine:2.7 Sep 26, 2020
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