coding-standard icon indicating copy to clipboard operation
coding-standard copied to clipboard

[BUG] LineLengthFixer: incorrectly takes phpdoc length into account

Open Ciki opened this issue 2 years ago • 0 comments

<?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

Ciki avatar May 22 '23 20:05 Ciki