mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-21 20:36:05 +03:00
Fixed warning added by one of the previous commits
This commit is contained in:
parent
d5fbf1b29f
commit
d1d4455eaa
@ -8,9 +8,6 @@ use GraphQL\Language\AST\DirectiveDefinitionNode;
|
|||||||
use GraphQL\Language\DirectiveLocation;
|
use GraphQL\Language\DirectiveLocation;
|
||||||
use GraphQL\Utils\Utils;
|
use GraphQL\Utils\Utils;
|
||||||
use function array_key_exists;
|
use function array_key_exists;
|
||||||
use function array_keys;
|
|
||||||
use function count;
|
|
||||||
use function in_array;
|
|
||||||
use function is_array;
|
use function is_array;
|
||||||
|
|
||||||
class Directive
|
class Directive
|
||||||
@ -87,7 +84,7 @@ class Directive
|
|||||||
*/
|
*/
|
||||||
public static function getInternalDirectives() : array
|
public static function getInternalDirectives() : array
|
||||||
{
|
{
|
||||||
if (count(self::$internalDirectives) === 0) {
|
if (self::$internalDirectives === null) {
|
||||||
self::$internalDirectives = [
|
self::$internalDirectives = [
|
||||||
'include' => new self([
|
'include' => new self([
|
||||||
'name' => self::INCLUDE_NAME,
|
'name' => self::INCLUDE_NAME,
|
||||||
|
Loading…
Reference in New Issue
Block a user