diff --git a/src/Validator/Rules/KnownDirectives.php b/src/Validator/Rules/KnownDirectives.php index b179829..c0c220b 100644 --- a/src/Validator/Rules/KnownDirectives.php +++ b/src/Validator/Rules/KnownDirectives.php @@ -22,7 +22,7 @@ class KnownDirectives extends ValidationRule { public function getVisitor(ValidationContext $context) { - $locationsMap = []; + $locationsMap = []; $schema = $context->getSchema(); $definedDirectives = $schema->getDirectives(); @@ -59,7 +59,6 @@ class KnownDirectives extends ValidationRule if (! $candidateLocation || in_array($candidateLocation, $locations)) { return; } - $context->reportError( new Error( self::misplacedDirectiveMessage($name, $candidateLocation),