Skip to content

Commit

Permalink
Test: Add testcase showing unexpected PhpdocAlignFixer behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Jun 10, 2024
1 parent 11a7ba3 commit 352a94f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/Integration/Fixtures/PhpDoc.correct.php.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ class PhpDoc
* and possibly other Phpdoc rules.
*
* @param int|float $second Second parameter does have a comment, unlike the first one.
* @param string|null $third Third parameter is optional and has a default value.
* @param string|null $third Third parameter is optional and has a default value and multilne comment. Lorem
* ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies ultricies.
* Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc ultricies ultricies.
* @return mixed There is also information about return type.
* @throws \Exception
*/
Expand Down
4 changes: 3 additions & 1 deletion tests/Integration/Fixtures/PhpDoc.wrong.php.inc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class PhpDoc
* @param string $first
* @throws \Exception
* @param int|float $second Second parameter does have a comment, unlike the first one.
* @param string|null $third Third parameter is optional and has a default value.
* @param string|null $third Third parameter is optional and has a default value and multilne comment. Lorem
* ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies ultricies.
* Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc ultricies ultricies.
* @return mixed There is also information about return type.
*/
public function veryWellDocumented(string $first, int|float $second, ?string $third = '3rd'): mixed
Expand Down

0 comments on commit 352a94f

Please sign in to comment.