Skip to content

Commit 94d57d9

Browse files
committed
fix error with change in slevomat/coding-standard 8.19.0
1 parent b12f930 commit 94d57d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CakePHP/Sniffs/Classes/ReturnTypeHintSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ protected function getClassNameWithNamespace(File $phpCsFile): ?string
230230

231231
return ClassHelper::getFullyQualifiedName(
232232
$phpCsFile,
233-
$phpCsFile->findPrevious(TokenHelper::$typeKeywordTokenCodes, $lastToken)
233+
$phpCsFile->findPrevious([T_CLASS, T_TRAIT, T_INTERFACE, T_ENUM], $lastToken)
234234
);
235235
}
236236
}

0 commit comments

Comments
 (0)