Merge pull request #438 from skodak/executioncontext

Fix incorrect array type of contextValue in PHPDocs
This commit is contained in:
Vladimir Razuvaev 2019-02-11 10:56:05 +07:00 committed by GitHub
commit 20e98aefa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -74,7 +74,7 @@ class Executor
* execution are collected in `$result->errors`. * execution are collected in `$result->errors`.
* *
* @param mixed|null $rootValue * @param mixed|null $rootValue
* @param mixed[]|null $contextValue * @param mixed|null $contextValue
* @param mixed[]|ArrayAccess|null $variableValues * @param mixed[]|ArrayAccess|null $variableValues
* @param string|null $operationName * @param string|null $operationName
* *
@ -119,8 +119,8 @@ class Executor
* *
* Useful for async PHP platforms. * Useful for async PHP platforms.
* *
* @param mixed[]|null $rootValue * @param mixed|null $rootValue
* @param mixed[]|null $contextValue * @param mixed|null $contextValue
* @param mixed[]|null $variableValues * @param mixed[]|null $variableValues
* @param string|null $operationName * @param string|null $operationName
* *
@ -161,9 +161,9 @@ class Executor
* and returns it as the result, or if it's a function, returns the result * 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. * of calling that function while passing along args and context.
* *
* @param mixed $source * @param mixed $source
* @param mixed[] $args * @param mixed[] $args
* @param mixed[]|null $context * @param mixed|null $context
* *
* @return mixed|null * @return mixed|null
*/ */

View File

@ -115,8 +115,8 @@ class ReferenceExecutor implements ExecutorImplementation
* Constructs an ExecutionContext object from the arguments passed to * Constructs an ExecutionContext object from the arguments passed to
* execute, which we will pass throughout the other execution methods. * execute, which we will pass throughout the other execution methods.
* *
* @param mixed[] $rootValue * @param mixed $rootValue
* @param mixed[] $contextValue * @param mixed $contextValue
* @param mixed[]|Traversable $rawVariableValues * @param mixed[]|Traversable $rawVariableValues
* @param string|null $operationName * @param string|null $operationName
* *