Skip to content

Commit 5b668ae

Browse files
authored
Merge pull request #422 from azjezz/patch-1
Add psalm annotations to ignored annotation name
2 parents f96567b + a28ac49 commit 5b668ae

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

lib/Doctrine/Common/Annotations/ImplicitlyIgnoredAnnotationNames.php

+12-7
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,21 @@ final class ImplicitlyIgnoredAnnotationNames
139139

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

142-
private const PhpStan = [
142+
private const Phan = ['suppress' => true];
143+
144+
private const Rector = ['noRector' => true];
145+
146+
private const StaticAnalysis = [
147+
// PHPStan, Psalm
143148
'extends' => true,
144149
'implements' => true,
145150
'template' => true,
146151
'use' => true,
147-
];
148152

149-
private const Phan = ['suppress' => true];
150-
151-
private const Rector = ['noRector' => true];
153+
// Psalm
154+
'pure' => true,
155+
'immutable' => true,
156+
];
152157

153158
public const LIST = self::Reserved
154159
+ self::WidelyUsedNonStandard
@@ -162,9 +167,9 @@ final class ImplicitlyIgnoredAnnotationNames
162167
+ self::Symfony
163168
+ self::SlevomatCodingStandard
164169
+ self::PhpCodeSniffer
165-
+ self::PhpStan
166170
+ self::Phan
167-
+ self::Rector;
171+
+ self::Rector
172+
+ self::StaticAnalysis;
168173

169174
private function __construct()
170175
{

0 commit comments

Comments
 (0)