@@ -85,6 +85,9 @@ class FileCommentSniff implements Sniff
&&$secondOopKeyword===false
&&$namespace!==false
){
if($tokens[$commentStart]['code']===T_COMMENT){
$phpcsFile->addError('Namespaced classes, interfaces and traits should not begin with a file doc comment',$commentStart,'NamespaceNoFileDoc');
}else{
$fix=$phpcsFile->addFixableError('Namespaced classes, interfaces and traits should not begin with a file doc comment',$commentStart,'NamespaceNoFileDoc');
if($fix===true){
$phpcsFile->fixer->beginChangeset();
@@ -102,6 +105,7 @@ class FileCommentSniff implements Sniff