@@ -71,9 +71,8 @@ discard block |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | - * @param $schema |
|
| 75 | - * @param $operations |
|
| 76 | - * @param array $globals |
|
| 74 | + * @param string $schema |
|
| 75 | + * @param \GraphQL\Server\OperationParams $operations |
|
| 77 | 76 | * |
| 78 | 77 | * @return \Drupal\Core\Cache\CacheableJsonResponse |
| 79 | 78 | * @throws \Drupal\Component\Plugin\Exception\PluginException |
@@ -86,9 +85,8 @@ discard block |
||
| 86 | 85 | } |
| 87 | 86 | |
| 88 | 87 | /** |
| 89 | - * @param $schema |
|
| 88 | + * @param string $schema |
|
| 90 | 89 | * @param $operations |
| 91 | - * @param array $globals |
|
| 92 | 90 | * |
| 93 | 91 | * @return \Drupal\Core\Cache\CacheableJsonResponse |
| 94 | 92 | * @throws \Drupal\Component\Plugin\Exception\PluginException |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Drupal\graphql_core\Plugin\GraphQL\Fields\Menu; |
| 4 | 4 | |
| 5 | 5 | use Drupal\Core\DependencyInjection\DependencySerializationTrait; |
| 6 | -use Drupal\Core\Entity\EntityType; |
|
| 7 | 6 | use Drupal\Core\Entity\EntityTypeManagerInterface; |
| 8 | 7 | use Drupal\Core\Entity\TranslatableInterface; |
| 9 | 8 | use Drupal\Core\Plugin\ContainerFactoryPluginInterface; |
@@ -217,7 +217,7 @@ |
||
| 217 | 217 | /** |
| 218 | 218 | * Apply the specified revision filtering mode to the query. |
| 219 | 219 | * |
| 220 | - * @param \Drupal\Core\Entity\Query\QueryInterface $query |
|
| 220 | + * @param QueryInterface|null $query |
|
| 221 | 221 | * The entity query object. |
| 222 | 222 | * @param mixed $mode |
| 223 | 223 | * The revision query mode. |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | * @param \GraphQL\Server\OperationParams $params |
| 234 | 234 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 235 | 235 | * |
| 236 | - * @return \GraphQL\Executor\Promise\Promise|mixed |
|
| 236 | + * @return \GraphQL\Executor\Promise\Promise |
|
| 237 | 237 | */ |
| 238 | 238 | protected function executeCacheableOperation(PromiseAdapter $adapter, ServerConfig $config, OperationParams $params, DocumentNode $document) { |
| 239 | 239 | $inDebug = !!$config->getDebug(); |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | * @param \GraphQL\Server\ServerConfig $config |
| 370 | 370 | * @param \GraphQL\Server\OperationParams $params |
| 371 | 371 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 372 | - * @param $operation |
|
| 372 | + * @param string $operation |
|
| 373 | 373 | * |
| 374 | 374 | * @return mixed |
| 375 | 375 | */ |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | * @param \GraphQL\Server\ServerConfig $config |
| 387 | 387 | * @param \GraphQL\Server\OperationParams $params |
| 388 | 388 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 389 | - * @param $operation |
|
| 389 | + * @param string $operation |
|
| 390 | 390 | * |
| 391 | 391 | * @return mixed |
| 392 | 392 | */ |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | * @param \GraphQL\Server\ServerConfig $config |
| 404 | 404 | * @param \GraphQL\Server\OperationParams $params |
| 405 | 405 | * @param \GraphQL\Language\AST\DocumentNode $document |
| 406 | - * @param $operation |
|
| 406 | + * @param string $operation |
|
| 407 | 407 | * |
| 408 | 408 | * @return array |
| 409 | 409 | */ |
@@ -2,14 +2,11 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Drupal\graphql\GraphQL\Execution; |
| 4 | 4 | |
| 5 | -use Drupal\Core\Cache\CacheableDependencyInterface; |
|
| 6 | 5 | use Drupal\Core\Cache\Cache; |
| 7 | 6 | use Drupal\Core\Cache\CacheableMetadata; |
| 8 | 7 | use Drupal\Core\Cache\CacheBackendInterface; |
| 9 | 8 | use Drupal\Core\Cache\Context\CacheContextsManager; |
| 10 | -use Drupal\Core\Session\AccountProxyInterface; |
|
| 11 | 9 | use Drupal\graphql\Plugin\SchemaPluginManager; |
| 12 | -use Drupal\graphql\GraphQL\QueryProvider\QueryProviderInterface; |
|
| 13 | 10 | use Drupal\graphql\GraphQL\Cache\CacheableRequestError; |
| 14 | 11 | use GraphQL\Error\Error; |
| 15 | 12 | use GraphQL\Error\FormattedError; |
@@ -27,7 +24,6 @@ discard block |
||
| 27 | 24 | use GraphQL\Utils\AST; |
| 28 | 25 | use GraphQL\Utils\TypeInfo; |
| 29 | 26 | use GraphQL\Utils\Utils; |
| 30 | -use GraphQL\Validator\DocumentValidator; |
|
| 31 | 27 | use GraphQL\Validator\Rules\AbstractValidationRule; |
| 32 | 28 | use GraphQL\Validator\ValidationContext; |
| 33 | 29 | use Symfony\Component\HttpFoundation\RequestStack; |