Skip to content

[DeadCode] Allow static constant call on RemoveUnusedPrivateConstantRector#1697

Merged
TomasVotruba merged 2 commits intorectorphp:masterfrom
ravanscafi:static-constant-call
Jul 6, 2019
Merged

[DeadCode] Allow static constant call on RemoveUnusedPrivateConstantRector#1697
TomasVotruba merged 2 commits intorectorphp:masterfrom
ravanscafi:static-constant-call

Conversation

@ravanscafi
Copy link
Copy Markdown
Contributor

@ravanscafi ravanscafi commented Jul 5, 2019

Basically there were false positives regarding private constant uses when called with static:: instead of self::

Note: phpstan is failing on master too. I've fixed it on #1698

@ravanscafi ravanscafi changed the title Allow static constant call on RemoveUnusedPrivateConstantRector [DeadCode] Allow static constant call on RemoveUnusedPrivateConstantRector Jul 5, 2019
@TomasVotruba TomasVotruba self-requested a review July 6, 2019 13:55
@TomasVotruba
Copy link
Copy Markdown
Member

Thank you 👍

@TomasVotruba TomasVotruba merged commit 38c00ff into rectorphp:master Jul 6, 2019
@ravanscafi ravanscafi deleted the static-constant-call branch July 6, 2019 16:29
TomasVotruba added a commit that referenced this pull request Jan 19, 2022
rectorphp/rector-src@7d92627 [Php56] Skip AddDefaultValueForUndefinedVariableRector on empty() check (#1697)
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