From 3e6f2c9e835bf425ed3f4949f52fce655bd726cb Mon Sep 17 00:00:00 2001 From: Vladimir Razuvaev Date: Tue, 25 Jul 2017 19:26:41 +0700 Subject: [PATCH] Fixed minor bugs --- src/Language/AST/Node.php | 2 +- src/Server/StandardServer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Language/AST/Node.php b/src/Language/AST/Node.php index 9bf0936..e0485af 100644 --- a/src/Language/AST/Node.php +++ b/src/Language/AST/Node.php @@ -60,7 +60,7 @@ abstract class Node * This is a reverse operation for $node->toArray(true) * * @param array $node - * @return EnumValueDefinitionNode + * @return Node */ public static function fromArray(array $node) { diff --git a/src/Server/StandardServer.php b/src/Server/StandardServer.php index fa24901..f73a2a5 100644 --- a/src/Server/StandardServer.php +++ b/src/Server/StandardServer.php @@ -72,7 +72,7 @@ class StandardServer */ public function executeRequest($parsedBody = null) { - if (null !== $parsedBody) { + if (null === $parsedBody) { $parsedBody = $this->helper->parseHttpRequest(); }