Skip to content

Commit 65368ca

Browse files
added constraint to only test namespace of class itself, not vendor namespaces
1 parent c53609e commit 65368ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

custom-standards/Flyeralarm/Sniffs/File/NamespacesSniff.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public function process(File $phpcsFile, $stackPtr)
4040
'NamespaceDeclarationWithInvalidCapitalization'
4141
);
4242
}
43+
if (strpos($tokens[$ptr + 2]['content'], ';') !== false) {
44+
break;
45+
}
4346
}
4447
}
4548
}

0 commit comments

Comments
 (0)