File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public function process(File $phpcsFile, $stackPtr)
101
101
if ($ tokens [$ commentEnd ]['code ' ] === T_COMMENT
102
102
&& preg_match ('/\@phpstan-ignore/ ' , $ tokens [$ commentEnd ]['content ' ]) === 1
103
103
) {
104
- $ phpstanCommentLines += 1 ;
104
+ $ functionCodeStart = $ commentEnd ;
105
105
continue ;
106
106
}
107
107
@@ -176,7 +176,7 @@ public function process(File $phpcsFile, $stackPtr)
176
176
}
177
177
}//end foreach
178
178
179
- if ($ tokens [$ commentEnd ]['line ' ] !== ($ tokens [$ functionCodeStart ]['line ' ] - 1 - $ phpstanCommentLines )) {
179
+ if ($ tokens [$ commentEnd ]['line ' ] !== ($ tokens [$ functionCodeStart ]['line ' ] - 1 )) {
180
180
$ error = 'There must be no blank lines after the function comment ' ;
181
181
$ fix = $ phpcsFile ->addFixableError ($ error , $ commentEnd , 'SpacingAfter ' );
182
182
if ($ fix === true ) {
You can’t perform that action at this time.
0 commit comments