Skip to content

Commit 2e4db7d

Browse files
committed
Fix up deprecations.
1 parent fcd5c21 commit 2e4db7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PhpCollective/Sniffs/AbstractSniffs/AbstractSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected function getClassNameWithNamespace(File $phpCsFile): ?string
108108
return null;
109109
}
110110

111-
$prevIndex = $phpCsFile->findPrevious(TokenHelper::$typeKeywordTokenCodes, $lastToken);
111+
$prevIndex = $phpCsFile->findPrevious([T_CLASS, T_TRAIT, T_INTERFACE, T_ENUM], $lastToken);
112112
if (!$prevIndex) {
113113
return null;
114114
}

0 commit comments

Comments
 (0)