rector icon indicating copy to clipboard operation
rector copied to clipboard

Doctrine Annotation to Attributes Bug report

Open tacman opened this issue 3 years ago • 3 comments

rector_bug.zip

Attached is a bug report, along with the source file and rector.php

tacman avatar Jul 30 '22 12:07 tacman

I guess you're on windows, it probably due to line ending issue ref https://github.com/nikic/PHP-Parser/issues/599

samsonasik avatar Jul 30 '22 12:07 samsonasik

I'm not on Windows, but perhaps the file I was converting was. It was a file from SymfonyCast.

So should I run something first before running rector?

tacman avatar Jul 31 '22 15:07 tacman

I can't reproduce in macOS, so I guess you're on Linux, right?

If the issue is line ending, it probably needs converting first..., this stackoverflow probably can do this https://askubuntu.com/questions/803162/how-to-change-windows-line-ending-to-unix-version

samsonasik avatar Jul 31 '22 15:07 samsonasik

I've checked the zip now and there is no composer.json. I used Rector 0.13.10 and dev-main and both run well :+1: Closing as fixed then.

If the same issue happens, please provide demo link: https://getrector.org/demo, so we can see it directly and work around live code. Thank you :slightly_smiling_face:

TomasVotruba avatar Aug 17 '22 14:08 TomasVotruba