-
-
Notifications
You must be signed in to change notification settings - Fork 708
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
Docblock indentation #2976
Comments
Try adding smallest demo possible (~10 lines) in: https://getrector.org/demo
If it worked before and not it doesn't, there is 99 % chance it's a bug in Rector. |
At demo site, it's working like expected. |
You can see it here as well in the Travis CI, there is a little more "context" |
I've done a little testing to see if I could locate the problem. Regardless of which of the following sets I use it gets indented
So looks like it hasn't something to do with a specific set. |
I've found the problem, but not the solution. For some reasons the indentation is after the The number of indentations are still correct but the character isn't. |
I don't know yet if can be related to following commit 04c62b0 and especially this section 04c62b0#diff-560bcf8e3b306989b3cb6718d0403d0cR365 But it as least has something to do with indentations and tabs too. |
Failing demo is needed, you might need to modify the input file |
I'll see if I can make a failing demo. |
I have an example code now. After the
I added a tab manually.. And that triggered the PHPDoc to indent with tabs instead of spaces, but only for the second PHPDoc Block. |
If I clean my file for all tab characters regardless where they are positioned. It works. |
@alexanderschnitzler Just released v0.7.3 with that fix |
I can confirm that it fixed my issue. |
rectorphp/rector-src@d2ff17e [Php81] Skip assigned after defined as constructor promotion on ReadOnlyPropertyRector (#2976)
Bug Report
After updating to rector v.0.7.2, I get "funny" indentations suggestions for some, not all docblocks.
I haven't found a pattern in the behaviour yet, but perhaps you can point me into the correct direction.
I'm honestly not sure if it's a problem with rector, or a misconfiguration on my site.
I only run the dead-code set.
Expected Behaviour
I would expect the docblock to be "left" align as usual.
The text was updated successfully, but these errors were encountered: