Skip to content

Commit

Permalink
Fix readonly without visibility (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
babeuloula authored Jul 7, 2022
1 parent 22f71a5 commit 4eea8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BaBeuloula/Sniffs/CodeAnalysis/ReadOnlySniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function process(File $phpcsFile, $stackPtr): void
$next = $phpcsFile->getTokens()[$stackPtr + 2];

if (true === \in_array($previous['type'], static::TOKEN_VISIBILITY, true)
&& false === \in_array($next['type'], static::TOKEN_VISIBILITY, true)
|| 'T_STRING' === $next['type']
) {
return;
}
Expand Down

0 comments on commit 4eea8d8

Please sign in to comment.