Skip to content

Commit

Permalink
DX: fix SCA violations
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Aug 2, 2021
1 parent ec10484 commit ca2b119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fixer/ClassNotation/ClassAttributesSeparationFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function applyFix(\SplFileInfo $file, Tokens $tokens): void
$tokensAnalyzer = new TokensAnalyzer($tokens);
$class = $classStart = $classEnd = false;

foreach (array_reverse($tokensAnalyzer->getClassyElements(true), true) as $index => $element) {
foreach (array_reverse($tokensAnalyzer->getClassyElements(), true) as $index => $element) {
if (!isset($this->classElementTypes[$element['type']])) {
continue; // not configured to be fixed
}
Expand Down

0 comments on commit ca2b119

Please sign in to comment.