-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #54 Group some PHPDoc tags in PhpdocSeparationFixer rule (coldic3)
This PR was merged into the 4.3-dev branch. Discussion ---------- Commits ------- 8163ed2 Group some PHPDoc tags in PhpdocSeparationFixer rule
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tests\CodingStandard; | ||
|
||
final class Annotations | ||
{ | ||
/** | ||
* @param int $bar | ||
* @param string $baz | ||
* @phpstan-param string $baz | ||
* @psalm-param string $baz | ||
* | ||
* @return string[] | ||
* @phpstan-return string<int, string> | ||
* @psalm-return string<int, string> | ||
*/ | ||
public function foo($bar, $baz) | ||
{ | ||
/** | ||
* Some comment | ||
* | ||
* @var int $key | ||
* @phpstan-var int $key | ||
* @psalm-var int $key | ||
*/ | ||
$key = --$bar; | ||
|
||
return [$key => $baz]; | ||
} | ||
} |