diff --git a/lib/Doctrine/ruleset.xml b/lib/Doctrine/ruleset.xml index 128acc95..ae4c65f7 100644 --- a/lib/Doctrine/ruleset.xml +++ b/lib/Doctrine/ruleset.xml @@ -174,8 +174,16 @@ @ODM\, @PHPCR\, "/> - - + + diff --git a/tests/fixed/doc-comment-spacing.php b/tests/fixed/doc-comment-spacing.php index ad1dee4a..03c6f321 100644 --- a/tests/fixed/doc-comment-spacing.php +++ b/tests/fixed/doc-comment-spacing.php @@ -56,10 +56,14 @@ public function c(iterable $foo): void * @PHPCR\Uuid * @PHPCR\Field * - * @param int[] $foo - * @param int[] $bar + * @param int[] $foo + * @param int[] $bar + * @psalm-param array $foo + * @phpstan-param array $foo * - * @return int[] + * @return int[] + * @psalm-return array + * @phpstan-return array * * @throws FooException * @throws BarException diff --git a/tests/input/doc-comment-spacing.php b/tests/input/doc-comment-spacing.php index 7b1df121..e034c8d2 100644 --- a/tests/input/doc-comment-spacing.php +++ b/tests/input/doc-comment-spacing.php @@ -43,20 +43,24 @@ public function c(iterable $foo): void * Description * More Description * @throws FooException - * @param int[] $foo + * @param int[] $foo * @uses other * @throws BarException - * @return int[] + * @return int[] * @ORM\Id * @internal * @link https://example.com * @ODM\Id * @deprecated * @PHPCR\Uuid - * @param int[] $bar + * @param int[] $bar * @PHPCR\Field * @ODM\Column * @ORM\Column + * @psalm-param array $foo + * @phpstan-return array + * @phpstan-param array $foo + * @psalm-return array * @see other * */