Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
crisu83 committed Feb 12, 2018
1 parent 1af11c3 commit 45e368e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Type/Directive/DeprecatedDirective.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Digia\GraphQL\Language\AST\DirectiveLocationEnum;
use Digia\GraphQL\Type\Definition\Scalar\StringType;
use function Digia\GraphQL\Type\GraphQLString;

class DeprecatedDirective extends Directive
{
Expand All @@ -24,7 +25,7 @@ protected function beforeConfig(): void
]);
$this->setArgs([
'reason' => [
'type' => new StringType(),
'type' => GraphQLString(),
'description' =>
'Explains why this element was deprecated, usually also including a ' .
'suggestion for how to access supported similar data. Formatted ' .
Expand Down
4 changes: 3 additions & 1 deletion src/Type/Directive/IncludeDirective.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
use Digia\GraphQL\Language\AST\DirectiveLocationEnum;
use Digia\GraphQL\Type\Definition\NonNullType;
use Digia\GraphQL\Type\Definition\Scalar\BooleanType;
use function Digia\GraphQL\Type\GraphQLBoolean;
use function Digia\GraphQL\Type\GraphQLNonNull;

class IncludeDirective extends Directive
{
Expand All @@ -26,7 +28,7 @@ protected function beforeConfig(): void
]);
$this->setArgs([
'if ' => [
'type' => new NonNullType(new BooleanType()),
'type' => GraphQLNonNull(GraphQLBoolean()),
'description' => 'Included when true.',
]
]);
Expand Down
4 changes: 3 additions & 1 deletion src/Type/Directive/SkipDirective.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
use Digia\GraphQL\Language\AST\DirectiveLocationEnum;
use Digia\GraphQL\Type\Definition\NonNullType;
use Digia\GraphQL\Type\Definition\Scalar\BooleanType;
use function Digia\GraphQL\Type\GraphQLBoolean;
use function Digia\GraphQL\Type\GraphQLNonNull;

class SkipDirective extends Directive
{
Expand All @@ -26,7 +28,7 @@ protected function beforeConfig(): void
]);
$this->setArgs([
'if' => [
'type' => new NonNullType(new BooleanType()),
'type' => GraphQLNonNull(GraphQLBoolean()),
'description' => 'Skipped when true.',
],
]);
Expand Down

0 comments on commit 45e368e

Please sign in to comment.