Skip to content

Remove stubs/ from rector.phar#2609

Merged
TomasVotruba merged 2 commits intorectorphp:masterfrom
gnutix:remove-stubs-from-rector-phar
Jan 8, 2020
Merged

Remove stubs/ from rector.phar#2609
TomasVotruba merged 2 commits intorectorphp:masterfrom
gnutix:remove-stubs-from-rector-phar

Conversation

@gnutix
Copy link
Copy Markdown
Contributor

@gnutix gnutix commented Jan 8, 2020

Fixes #2602.

@TomasVotruba
Copy link
Copy Markdown
Member

TomasVotruba commented Jan 8, 2020

Probably this line needs removing too: https://github.com/rectorphp/rector/blob/master/compiler/build/scoper.inc.php#L17

Not sure if phpstorm stubs break your code too, but then PHPStan will be missing them, as it's their dependency.

@gnutix
Copy link
Copy Markdown
Contributor Author

gnutix commented Jan 8, 2020

I have no idea how this works... I applied your fix, compiled it and ran it on my project, and it was still working and I had no inspections from PHPStorm anymore. Anything else, I'll ask you to try/fix yourself please, I'm of no use here.

@TomasVotruba
Copy link
Copy Markdown
Member

Just remove the other line and see if it still works. Now it's dead code.

@gnutix
Copy link
Copy Markdown
Contributor Author

gnutix commented Jan 8, 2020

@TomasVotruba Done, seems to work (at least running the phar on my project).

@TomasVotruba TomasVotruba merged commit 43d4f1c into rectorphp:master Jan 8, 2020
@TomasVotruba
Copy link
Copy Markdown
Member

Thank you!

@TomasVotruba
Copy link
Copy Markdown
Member

Possibly useful: #2936

TomasVotruba added a commit that referenced this pull request Jul 2, 2022
rectorphp/rector-src@23bad1e [EarlyReturn] Add ReturnEarlyIfVariableRector (#2609)
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.

Remove stubs from rector.phar

2 participants