Skip to content

Commit 5e2c265

Browse files
Cleanup the tags property in the abstract phpdoc types fixer
1 parent 27f28bb commit 5e2c265

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Symfony/CS/AbstractPhpdocTypesFixer.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,16 @@ abstract class AbstractPhpdocTypesFixer extends AbstractFixer
2727
/**
2828
* The annotation tags search inside.
2929
*
30-
* @var string[]|null
30+
* @var string[]
3131
*/
32-
protected static $tags;
32+
protected $tags;
3333

3434
/**
3535
* {@inheritdoc}
3636
*/
3737
public function __construct()
3838
{
39-
if (null === static::$tags) {
40-
static::$tags = Annotation::getTagsWithTypes();
41-
}
39+
$this->tags = Annotation::getTagsWithTypes();
4240
}
4341

4442
/**
@@ -60,7 +58,7 @@ public function fix(\SplFileInfo $file, Tokens $tokens)
6058
}
6159

6260
$doc = new DocBlock($token->getContent());
63-
$annotations = $doc->getAnnotationsOfType(static::$tags);
61+
$annotations = $doc->getAnnotationsOfType($this->tags);
6462

6563
if (empty($annotations)) {
6664
continue;

0 commit comments

Comments
 (0)