Skip to content

Commit 3c40fc8

Browse files
committed
Removed dead code
1 parent 06e6422 commit 3c40fc8

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

SlevomatCodingStandard/Sniffs/TypeHints/DisallowArrayTypeHintSyntaxSniff.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ public function process(File $phpcsFile, $docCommentOpenPointer): void
6363
$annotations = AnnotationHelper::getAnnotations($phpcsFile, $docCommentOpenPointer);
6464

6565
foreach ($annotations as $annotation) {
66-
if ($annotation->isInvalid()) {
67-
continue;
68-
}
69-
7066
$arrayTypeNodes = $this->getArrayTypeNodes($annotation->getValue());
7167

7268
foreach ($arrayTypeNodes as $arrayTypeNode) {

SlevomatCodingStandard/Sniffs/TypeHints/NullTypeHintOnLastPositionSniff.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ public function process(File $phpcsFile, $docCommentOpenPointer): void
4040
$annotations = AnnotationHelper::getAnnotations($phpcsFile, $docCommentOpenPointer);
4141

4242
foreach ($annotations as $annotation) {
43-
if ($annotation->isInvalid()) {
44-
continue;
45-
}
46-
4743
/** @var list<UnionTypeNode> $unionTypeNodes */
4844
$unionTypeNodes = AnnotationHelper::getAnnotationNodesByType($annotation->getNode(), UnionTypeNode::class);
4945

0 commit comments

Comments
 (0)