From 7d59811c4ff3134d1e4fd79652f8601e9bd37d36 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Thu, 7 Feb 2019 09:14:11 +1300 Subject: [PATCH 1/3] Fix incorrect array type of contextValue in PHPDocs --- src/Executor/Executor.php | 6 +++--- src/Executor/ReferenceExecutor.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index bf07cdd..c87558d 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -74,7 +74,7 @@ class Executor * execution are collected in `$result->errors`. * * @param mixed|null $rootValue - * @param mixed[]|null $contextValue + * @param mixed|null $contextValue * @param mixed[]|ArrayAccess|null $variableValues * @param string|null $operationName * @@ -120,7 +120,7 @@ class Executor * Useful for async PHP platforms. * * @param mixed[]|null $rootValue - * @param mixed[]|null $contextValue + * @param mixed|null $contextValue * @param mixed[]|null $variableValues * @param string|null $operationName * @@ -163,7 +163,7 @@ class Executor * * @param mixed $source * @param mixed[] $args - * @param mixed[]|null $context + * @param mixed|null $context * * @return mixed|null */ diff --git a/src/Executor/ReferenceExecutor.php b/src/Executor/ReferenceExecutor.php index 5944a6e..5ab906e 100644 --- a/src/Executor/ReferenceExecutor.php +++ b/src/Executor/ReferenceExecutor.php @@ -116,7 +116,7 @@ class ReferenceExecutor implements ExecutorImplementation * execute, which we will pass throughout the other execution methods. * * @param mixed[] $rootValue - * @param mixed[] $contextValue + * @param mixed $contextValue * @param mixed[]|Traversable $rawVariableValues * @param string|null $operationName * From 77448ba6239f7a8bd413c2dfc4ef6d2c3d040009 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 11 Feb 2019 08:53:24 +1300 Subject: [PATCH 2/3] Fix incorrect array type of rootValue in PHPDocs --- src/Executor/Executor.php | 2 +- src/Executor/ReferenceExecutor.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index c87558d..55fd0fb 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -119,7 +119,7 @@ class Executor * * Useful for async PHP platforms. * - * @param mixed[]|null $rootValue + * @param mixed|null $rootValue * @param mixed|null $contextValue * @param mixed[]|null $variableValues * @param string|null $operationName diff --git a/src/Executor/ReferenceExecutor.php b/src/Executor/ReferenceExecutor.php index 5ab906e..90030de 100644 --- a/src/Executor/ReferenceExecutor.php +++ b/src/Executor/ReferenceExecutor.php @@ -115,7 +115,7 @@ class ReferenceExecutor implements ExecutorImplementation * Constructs an ExecutionContext object from the arguments passed to * execute, which we will pass throughout the other execution methods. * - * @param mixed[] $rootValue + * @param mixed $rootValue * @param mixed $contextValue * @param mixed[]|Traversable $rawVariableValues * @param string|null $operationName From d20a6a9d56fd02639e6cf0750b1b441f98e639f8 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 11 Feb 2019 08:53:36 +1300 Subject: [PATCH 3/3] Standardise whitespace --- src/Executor/Executor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index 55fd0fb..30ccad4 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -161,9 +161,9 @@ class Executor * and returns it as the result, or if it's a function, returns the result * of calling that function while passing along args and context. * - * @param mixed $source - * @param mixed[] $args - * @param mixed|null $context + * @param mixed $source + * @param mixed[] $args + * @param mixed|null $context * * @return mixed|null */