Skip to content

Commit

Permalink
Merge pull request #422 from azjezz/patch-1
Browse files Browse the repository at this point in the history
Add psalm annotations to ignored annotation name
  • Loading branch information
greg0ire committed Aug 5, 2021
2 parents f96567b + a28ac49 commit 5b668ae
Showing 1 changed file with 12 additions and 7 deletions.
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 5b668ae

Please sign in to comment.