Skip to content

Commit 352a94f

Browse files
committed
Test: Add testcase showing unexpected PhpdocAlignFixer behavior
1 parent 11a7ba3 commit 352a94f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/Integration/Fixtures/PhpDoc.correct.php.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ class PhpDoc
1616
* and possibly other Phpdoc rules.
1717
*
1818
* @param int|float $second Second parameter does have a comment, unlike the first one.
19-
* @param string|null $third Third parameter is optional and has a default value.
19+
* @param string|null $third Third parameter is optional and has a default value and multilne comment. Lorem
20+
* ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies ultricies.
21+
* Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc ultricies ultricies.
2022
* @return mixed There is also information about return type.
2123
* @throws \Exception
2224
*/

tests/Integration/Fixtures/PhpDoc.wrong.php.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ class PhpDoc
2323
* @param string $first
2424
* @throws \Exception
2525
* @param int|float $second Second parameter does have a comment, unlike the first one.
26-
* @param string|null $third Third parameter is optional and has a default value.
26+
* @param string|null $third Third parameter is optional and has a default value and multilne comment. Lorem
27+
* ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies ultricies.
28+
* Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc ultricies ultricies.
2729
* @return mixed There is also information about return type.
2830
*/
2931
public function veryWellDocumented(string $first, int|float $second, ?string $third = '3rd'): mixed

0 commit comments

Comments
 (0)