Hi!
I noticed that the Symplify\CodingStandard\Fixer\Commenting\ParamReturnAndVarTagMalformsFixer tries to 'fix' correct multi-line doc-blocks.
The following code:
/**
* @param array<string, array{
* foo: string
* }> $foo
*/
public function test($foo, $bar): void {}
Produces the following diff:
---------- begin diff ----------
/**
- * @param array<string, array{
+ * @param array<string, $bar array{
* foo: string
* }> $foo
*/
----------- end diff -----------
Applied checkers:
* Symplify\CodingStandard\Fixer\Commenting\ParamReturnAndVarTagMalformsFixer
This doesn't happen when the missing argument ($bar) is also defined in the doc-block.
Hi!
I noticed that the
Symplify\CodingStandard\Fixer\Commenting\ParamReturnAndVarTagMalformsFixertries to 'fix' correct multi-line doc-blocks.The following code:
Produces the following diff:
---------- begin diff ---------- /** - * @param array<string, array{ + * @param array<string, $bar array{ * foo: string * }> $foo */ ----------- end diff ----------- Applied checkers: * Symplify\CodingStandard\Fixer\Commenting\ParamReturnAndVarTagMalformsFixerThis doesn't happen when the missing argument (
$bar) is also defined in the doc-block.