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(); }