Skip to content

Commit

Permalink
[CHORE] magento#465 Added comment about code change
Browse files Browse the repository at this point in the history
  • Loading branch information
p-makowski committed Oct 30, 2023
1 parent f95a70e commit 93b8e20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Magento2/Sniffs/GraphQL/ValidTypeNameSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function process(File $phpcsFile, $stackPtr)
//compose entity name by making use of the next strings that we find until we hit a non-string token
$name = '';
for ($i=$stackPtr+1; $tokens[$i]['code'] === T_STRING; ++$i) {
/**
* @see \PHP_CodeSniffer\Tokenizers\GRAPHQL::tokenize Removing EOL character artificially added to token
*/
$name .= rtrim($tokens[$i]['content']);
}

Expand Down

0 comments on commit 93b8e20

Please sign in to comment.