-
-
Notifications
You must be signed in to change notification settings - Fork 687
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
Upgrade a symfony 2.8 project #4873
Comments
Hi, thanks for detailed screenshots including configuration. Personally I'd exclude them and run Rector only on your own custom code. Somethign like: // // set paths to directories with your code
$parameters->set(Option::PATHS, [
__DIR__ . '/app/Controller',
__DIR__ . '/src',
]);
$parameters->set(Option::EXCLUDE_PATHS, [
// here put files you want to exclude from paths above
__DIR__ . '/app/Controller/SomeSymfonyClass.php',
]); |
Hi, Thank you for your reply. I actually tried to do that and I didn’t have errors but when I ran the process, it just says OK in green, I tried with all symfony version in my rector.php and it’s the same ... Is it a normal behavior ? Thanks. |
It usually change some code, but it depends how you run Rector on what code. If you need fasten up the upgrade, you can contact us: https://getrector.org/contact |
rectorphp/rector-src@eac3d46 [ProcessAnalyzer] Remove unnecessary hasAttribute(origNode) on RectifiedAnalyzer (#4873)
Question
Hello,
I'm trying to upgrade a symfony 2.8 project to a least the LTS and if it's not too difficult maybe to version 5.2.
I tried to use the last version of rector-prefixed but it was not working, as suggested by @arnaud-fr here I instaled the version 0.8.52 but it's still not working, now I have this error :
If I clear cache I only have the first error, all the next errors are similar.
This is my rector.php file :
The project was running in php 7.1 in production but I'm actully running it in a php 7.2 container, I would like to also update to the lts version of php.
Am I missing something ?
Thanks for your help.
The text was updated successfully, but these errors were encountered: