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

Add bootstrap files option to allow including files #5964

Merged
merged 2 commits into from
Mar 23, 2021

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Mar 23, 2021

With #5665 change in Rector 0.10, the option to include files in config was removed, as included files are now processed by static reflection.

This PR adds parameter BOOTSTRAP_FILES that includes files again.

Inspired by same-named option from PHPStan
https://phpstan.org/user-guide/discovering-symbols#global-constants

@TomasVotruba TomasVotruba changed the title add bootstrap files Add bootstrap files option to allow including files Mar 23, 2021
@TomasVotruba TomasVotruba enabled auto-merge (squash) March 23, 2021 18:52
@TomasVotruba TomasVotruba merged commit 60b5842 into main Mar 23, 2021
@TomasVotruba TomasVotruba deleted the add-bootstrap-files branch March 23, 2021 18:53
TomasVotruba added a commit that referenced this pull request Jun 13, 2024
rectorphp/rector-src@c3dc626 [DeadCode] Skip dynamic variable on RemoveUnusedVariableAssignRector (#5964)
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