Skip to content

Commit 62544a2

Browse files
Remove pointless TODO message
Apparently `getDeclarationName` will never support T_FN.
1 parent f36c466 commit 62544a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Inpsyde/Sniffs/CodeQuality/ReturnTypeDeclarationSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ private function maybeErrors(
171171
}
172172

173173
$tokenCode = $file->getTokens()[$position]['code'] ?? '';
174-
// TODO Remove check on T_FN if getDeclarationName() will support T_FN out of the box
175174
$name = $tokenCode !== T_FN ? (string)$file->getDeclarationName($position) : '';
175+
176176
if (
177177
PhpcsHelpers::functionIsMethod($file, $position)
178178
&& (in_array($name, self::METHODS_WHITELIST, true) || strpos($name, '__') === 0)

0 commit comments

Comments
 (0)