Skip to content

Fix duplicated property naming#718

Merged
TomasVotruba merged 5 commits intomasterfrom
property-dups
Oct 21, 2018
Merged

Fix duplicated property naming#718
TomasVotruba merged 5 commits intomasterfrom
property-dups

Conversation

@TomasVotruba
Copy link
Member

Closes #610

$this->identifierRenamer->renameNode($node, 'createForSubject');

if ($this->methodArgumentAnalyzer->hasMethodNthArgument($node, 2)) {
if (isset($node->args[1])) {
Copy link
Member Author

@TomasVotruba TomasVotruba Oct 21, 2018

Choose a reason for hiding this comment

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

To keep it consistent with $node->params, $node->stmts, $node->args where keys are from 0. The start with 1 is confusing then.

@TomasVotruba TomasVotruba merged commit 9e73964 into master Oct 21, 2018
@carusogabriel carusogabriel deleted the property-dups branch October 21, 2018 19:25
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.

1 participant