-
-
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
Missing information about applied rector #5139
Comments
FYI: I can't use Rector 0.9 because I have Symfony 4.4 and there is constraint for |
Hi, Rector 0.8 is not maintained, only higher version are. This issue is sub-issue of #4334 |
Thanks @TomasVotruba for the info. Actually I was able to upgrade project to Symfony 5.2 so I could update Rector and ECS to 0.9 and 9.0 respectively. Seems to be working 🙂 |
That's good news :) congrats! How is Symfony 5.2 and PHP 8? |
@TomasVotruba I've been working more in devops/QA area last few days so I can't say much about Symfony 5.2 and PHP 8 😉 I'll work with code in next days, so I'll see, but looks optimistic. One thing I've noticed Rector did not solve after upgrading Symfony from 4.4 to 5.2 was PS. I've tried to catch you on Symfony Slack because I have really weird problem with ECS that I struggle to debug. Did not create issue because it's only CI issue, locally works fine. What is the best way to get some help on it? |
If you make a diff for this in #4824, we can give it priority 👍
I don't use any Slack chanells, as it's a big productivity killer :). The best way is reproducible issue on GitHub, e.g. failing GitHub Action in your repository. Those get resolved by our team with priority |
rectorphp/rector-src@c47b778 add consistentimploderector rule to php80 rules (#5139)
It seems that there's an regression on it:
|
Bug Report
I have weird issue with Rector, that tries to change my Doctrine annotation but does not print information about applied rectors so I can't fix my configuration in order to get rid of these unwanted changes:
For the other issues I have something like this:
but not for changes from diffs above. For each file with annotation-related changes I see only file name and diff.
Expected Behaviour
First of all, there should be info about applied rectors. Without that it is hard to alter configuration.
Second, I don't want Rector to change annotations convention (
:
→=
) since I have ECS configured for that (DoctrineAnnotationArrayAssignmentFixer
+DoctrineAnnotationSpacesFixer
). Third: stripping quotation marks causesAnnotationException
because library treats this value as constant name and it's not found. Last but not least, I would expect that Rector does not make formatting worse than it was (or at least that ECS can fix it after Rector, which isn't the case here (running Rector + ECS leaves ugly-formatted annotations).The text was updated successfully, but these errors were encountered: