Skip to content

Commit

Permalink
Add @pure to ignored annotation names.
Browse files Browse the repository at this point in the history
@pure annotation is mainly used by psalm to mark pure functions.

Signed-off-by: azjezz <azjezz@protonmail.com>
  • Loading branch information
azjezz committed Aug 4, 2021
1 parent f96567b commit 4cf9e0f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ final class ImplicitlyIgnoredAnnotationNames

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

private const Psalm = ['pure' => true];

public const LIST = self::Reserved
+ self::WidelyUsedNonStandard
+ self::PhpDocumentor1
Expand All @@ -164,7 +166,8 @@ final class ImplicitlyIgnoredAnnotationNames
+ self::PhpCodeSniffer
+ self::PhpStan
+ self::Phan
+ self::Rector;
+ self::Rector
+ self::Psalm;

private function __construct()
{
Expand Down

0 comments on commit 4cf9e0f

Please sign in to comment.