Skip to content
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

[BUG] LineLengthFixer: incorrectly takes phpdoc length into account #22

Open
Ciki opened this issue May 22, 2023 · 0 comments
Open

[BUG] LineLengthFixer: incorrectly takes phpdoc length into account #22

Ciki opened this issue May 22, 2023 · 0 comments

Comments

@Ciki
Copy link

Ciki commented May 22, 2023

<?php

declare(strict_types=1);

class TestClass
{

	/**
	 * This is just standard doc comment for method which declaration's length is actually <  LineLengthFixer max length
	 * but it computes this php doc to the method declaration itself
	 */
	private function testMethod($arg)
	{

	}
}
?>

when LineLengthFixer is called on this file, it breaks the line and outputs this

image

I don't know how to fix it, however

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant