Skip to content

Commit

Permalink
Revert "Add psalm and phpstan prefixed annotations to param and retur…
Browse files Browse the repository at this point in the history
…n group"

This reverts commit 7dfeaa9.
That commit has a lot of impact and as such, should go to 9.0.x
  • Loading branch information
greg0ire committed Apr 3, 2021
1 parent 378aa39 commit 950c50a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
12 changes: 2 additions & 10 deletions lib/Doctrine/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,8 @@
@ODM\,
@PHPCR\,
"/>
<element value="
@param,
@psalm-param,
@phpstan-param,
"/>
<element value="
@return,
@psalm-return,
@phpstan-return,
"/>
<element value="@param"/>
<element value="@return"/>
<element value="@throws"/>
</property>
</properties>
Expand Down
10 changes: 3 additions & 7 deletions tests/fixed/doc-comment-spacing.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,10 @@ public function c(iterable $foo): void
* @PHPCR\Uuid
* @PHPCR\Field
*
* @param int[] $foo
* @param int[] $bar
* @psalm-param array<string, int> $foo
* @phpstan-param array<string, int> $foo
* @param int[] $foo
* @param int[] $bar
*
* @return int[]
* @psalm-return array<string, int>
* @phpstan-return array<string, int>
* @return int[]
*
* @throws FooException
* @throws BarException
Expand Down
10 changes: 3 additions & 7 deletions tests/input/doc-comment-spacing.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,20 @@ 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<string, int> $foo
* @phpstan-return array<string, int>
* @phpstan-param array<string, int> $foo
* @psalm-return array<string, int>
* @see other
*
*/
Expand Down

0 comments on commit 950c50a

Please sign in to comment.