Fixed warning added by one of the previous commits

This commit is contained in:
Vladimir Razuvaev 2019-06-19 15:47:14 +07:00
parent d5fbf1b29f
commit d1d4455eaa

View File

@ -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,