Skip to content

Commit 93b8e20

Browse files
committed
[CHORE] magento#465 Added comment about code change
1 parent f95a70e commit 93b8e20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: Magento2/Sniffs/GraphQL/ValidTypeNameSniff.php

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public function process(File $phpcsFile, $stackPtr)
3232
//compose entity name by making use of the next strings that we find until we hit a non-string token
3333
$name = '';
3434
for ($i=$stackPtr+1; $tokens[$i]['code'] === T_STRING; ++$i) {
35+
/**
36+
* @see \PHP_CodeSniffer\Tokenizers\GRAPHQL::tokenize Removing EOL character artificially added to token
37+
*/
3538
$name .= rtrim($tokens[$i]['content']);
3639
}
3740

0 commit comments

Comments
 (0)