-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 Utf8 support for LineLengthFixer #17
Comments
Could you share exact code of where current behavior fails? |
Setting LineLengthFixer in ecs config (no inline_short_lines, default line length: 120):
Run ecs on code example
The result will be
|
I see, it seems valid. Feel free to add this feature with the test fixture you've provided 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No utf8 support for LineLengthFixer.
The length of the strings is not correctly calculated, because of this, an extra line break is set, where it is not necessary.
The solution would be \Symplify\CodingStandard\TokenRunner\Transformer\FixerTransformer\FirstLineLengthResolver class to use the mb_strlen function instead of strlen, or be able to configure this behavior
The text was updated successfully, but these errors were encountered: