Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoUnsetOnPropertyFixer - fix for function call with class constant inside #4020

Closed
wants to merge 2 commits into from
Closed

NoUnsetOnPropertyFixer - fix for function call with class constant inside #4020

wants to merge 2 commits into from

Conversation

kubawerlos
Copy link
Contributor

No description provided.

for ($index = 0; $index < $tokens->count(); ++$index) {
if ('(' === $tokens[$index]->getContent()) {
$index = $tokens->findBlockEnd(
Tokens::BLOCK_TYPE_PARENTHESIS_BRACE,
Copy link
Contributor

Choose a reason for hiding this comment

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

indenting is bit off here I think

@SpacePossum SpacePossum added this to the 2.12.4 milestone Oct 8, 2018
@SpacePossum
Copy link
Contributor

looking good, please fix the CS minor, Travis failure is not related (existing test is to slow)

@dmvdbrugge
Copy link
Contributor

Does this fix #3843 too? (Would be awesome 😉)

@kubawerlos
Copy link
Contributor Author

Unfortunately no, I see a good test case there so will try to solve it as well.

@dmvdbrugge
Copy link
Contributor

I guess we should mention here that this is being superseeded by #4022? 😉

@kubawerlos
Copy link
Contributor Author

Exactly

@kubawerlos kubawerlos closed this Oct 11, 2018
@kubawerlos kubawerlos deleted the bugfix/no-unset-property-class-constant branch October 11, 2018 18:13
@keradus keradus removed this from the 2.12.4 milestone Oct 20, 2018
keradus added a commit that referenced this pull request Dec 30, 2018
This PR was squashed before being merged into the 2.12 branch (closes #4022).

Discussion
----------

NoUnsetOnPropertyFixer - refactor and bugfixes

Replaces #4020
Fix #3843

Commits
-------

e43137a NoUnsetOnPropertyFixer - refactor and bugfixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants