Skip to content

Commit

Permalink
MC-19366: Fixes that tokenizer for GraphQL files could not be loaded …
Browse files Browse the repository at this point in the history
…due to PHP_CodeSniffer uppercasing tokenizer names
  • Loading branch information
jean-bernard-valentaten committed Sep 13, 2019
1 parent 01eee92 commit d99c922
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Magento2/Sniffs/GraphQL/AbstractGraphQLSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ abstract class AbstractGraphQLSniff implements Sniff
*
* @var array
*/
public $supportedTokenizers = ['GraphQL'];
public $supportedTokenizers = ['GRAPHQL'];

/**
* Returns whether <var>$name</var> starts with a lower case character and is written in camel case.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function setUp()
$config->extensions = array_merge(
$config->extensions,
[
'graphqls' => 'GraphQL'
'graphqls' => 'GRAPHQL'
]
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Implements a tokenizer for GraphQL files.
*/
class GraphQL extends Tokenizer
class GRAPHQL extends Tokenizer
{

/**
Expand Down

0 comments on commit d99c922

Please sign in to comment.