Skip to content

Commit

Permalink
Add psalm annotations to ignored annotation names
Browse files Browse the repository at this point in the history
Signed-off-by: azjezz <azjezz@protonmail.com>
  • Loading branch information
azjezz committed Aug 5, 2021
1 parent f96567b commit a28ac49
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,21 @@ final class ImplicitlyIgnoredAnnotationNames

private const SlevomatCodingStandard = ['phpcsSuppress' => true];

private const PhpStan = [
private const Phan = ['suppress' => true];

private const Rector = ['noRector' => true];

private const StaticAnalysis = [
// PHPStan, Psalm
'extends' => true,
'implements' => true,
'template' => true,
'use' => true,
];

private const Phan = ['suppress' => true];

private const Rector = ['noRector' => true];
// Psalm
'pure' => true,
'immutable' => true,
];

public const LIST = self::Reserved
+ self::WidelyUsedNonStandard
Expand All @@ -162,9 +167,9 @@ final class ImplicitlyIgnoredAnnotationNames
+ self::Symfony
+ self::SlevomatCodingStandard
+ self::PhpCodeSniffer
+ self::PhpStan
+ self::Phan
+ self::Rector;
+ self::Rector
+ self::StaticAnalysis;

private function __construct()
{
Expand Down

0 comments on commit a28ac49

Please sign in to comment.