From d1d4455eaaf328507402a81e61fef8fdc2ca4a1b Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Wed, 19 Jun 2019 15:47:14 +0700 Subject: [PATCH] Fixed warning added by one of the previous commits --- src/Type/Definition/Directive.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Type/Definition/Directive.php b/src/Type/Definition/Directive.php index 3ad4b8a..cb80713 100644 --- a/src/Type/Definition/Directive.php +++ b/src/Type/Definition/Directive.php @@ -8,9 +8,6 @@ use GraphQL\Language\AST\DirectiveDefinitionNode; use GraphQL\Language\DirectiveLocation; use GraphQL\Utils\Utils; use function array_key_exists; -use function array_keys; -use function count; -use function in_array; use function is_array; class Directive @@ -87,7 +84,7 @@ class Directive */ public static function getInternalDirectives() : array { - if (count(self::$internalDirectives) === 0) { + if (self::$internalDirectives === null) { self::$internalDirectives = [ 'include' => new self([ 'name' => self::INCLUDE_NAME,