@@ -463,6 +463,7 @@ discard block |
||
| 463 | 463 | /** |
| 464 | 464 | * If maybeString is not null or empty, then wrap with start and end, otherwise |
| 465 | 465 | * print an empty string. |
| 466 | + * @param string $start |
|
| 466 | 467 | */ |
| 467 | 468 | public function wrap($start, $maybeString, $end = '') |
| 468 | 469 | { |
@@ -514,6 +515,8 @@ discard block |
||
| 514 | 515 | * Print a block string in the indented block form by adding a leading and |
| 515 | 516 | * trailing blank line. However, if a block string starts with whitespace and is |
| 516 | 517 | * a single-line, adding a leading blank line would strip that whitespace. |
| 518 | + * @param string $value |
|
| 519 | + * @param boolean $isDescription |
|
| 517 | 520 | */ |
| 518 | 521 | private function printBlockString($value, $isDescription) |
| 519 | 522 | { |
@@ -53,6 +53,7 @@ discard block |
||
| 53 | 53 | * |
| 54 | 54 | * For PSR-7 request parsing use `parsePsrRequest()` instead. |
| 55 | 55 | * |
| 56 | + * @param \Closure $readRawBodyFn |
|
| 56 | 57 | * @return OperationParams|OperationParams[] |
| 57 | 58 | * |
| 58 | 59 | * @throws RequestError |
@@ -439,6 +440,9 @@ discard block |
||
| 439 | 440 | } |
| 440 | 441 | } |
| 441 | 442 | |
| 443 | + /** |
|
| 444 | + * @param boolean $exitWhenDone |
|
| 445 | + */ |
|
| 442 | 446 | private function doSendResponse($result, $exitWhenDone) |
| 443 | 447 | { |
| 444 | 448 | $httpStatus = $this->resolveHttpStatus($result); |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | /** |
| 68 | 68 | * Creates new instance of a standard GraphQL HTTP server |
| 69 | 69 | * |
| 70 | - * @param ServerConfig|mixed[] $config |
|
| 70 | + * @param ServerConfig $config |
|
| 71 | 71 | * |
| 72 | 72 | * @api |
| 73 | 73 | */ |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | /** |
| 151 | 151 | * @param int $childrenComplexity |
| 152 | 152 | * |
| 153 | - * @return mixed |
|
| 153 | + * @return integer |
|
| 154 | 154 | */ |
| 155 | 155 | public static function defaultComplexity($childrenComplexity) |
| 156 | 156 | { |
@@ -117,6 +117,7 @@ discard block |
||
| 117 | 117 | * @param FragmentDefinitionNode[] $fragments |
| 118 | 118 | * @param mixed|null $rootValue |
| 119 | 119 | * @param mixed[] $variableValues |
| 120 | + * @param OperationDefinitionNode|null $operation |
|
| 120 | 121 | */ |
| 121 | 122 | public function __construct( |
| 122 | 123 | FieldDefinition $fieldDefinition, |
@@ -199,7 +200,7 @@ discard block |
||
| 199 | 200 | } |
| 200 | 201 | |
| 201 | 202 | /** |
| 202 | - * @param mixed[] $options |
|
| 203 | + * @param string[] $options |
|
| 203 | 204 | */ |
| 204 | 205 | public function lookAhead(array $options = []) : QueryPlan |
| 205 | 206 | { |
@@ -307,7 +307,7 @@ |
||
| 307 | 307 | } |
| 308 | 308 | |
| 309 | 309 | /** |
| 310 | - * @param mixed $type |
|
| 310 | + * @param callable $type |
|
| 311 | 311 | * |
| 312 | 312 | * @return mixed |
| 313 | 313 | */ |
@@ -59,6 +59,7 @@ discard block |
||
| 59 | 59 | /** |
| 60 | 60 | * @param Node[] $typeDefinitionsMap |
| 61 | 61 | * @param bool[] $options |
| 62 | + * @param callable $typeConfigDecorator |
|
| 62 | 63 | */ |
| 63 | 64 | public function __construct( |
| 64 | 65 | array $typeDefinitionsMap, |
@@ -159,7 +160,7 @@ discard block |
||
| 159 | 160 | } |
| 160 | 161 | |
| 161 | 162 | /** |
| 162 | - * @return Type|InputType |
|
| 163 | + * @return Type |
|
| 163 | 164 | * |
| 164 | 165 | * @throws Error |
| 165 | 166 | */ |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | * Coffeescript's block string, Python's docstring trim or Ruby's strip_heredoc. |
| 21 | 21 | * |
| 22 | 22 | * This implements the GraphQL spec's BlockStringValue() static algorithm. |
| 23 | + * @param string $rawString |
|
| 23 | 24 | */ |
| 24 | 25 | public static function value($rawString) |
| 25 | 26 | { |
@@ -447,6 +447,7 @@ |
||
| 447 | 447 | } |
| 448 | 448 | |
| 449 | 449 | /** |
| 450 | + * @param ObjectType $type |
|
| 450 | 451 | * @return mixed|null |
| 451 | 452 | */ |
| 452 | 453 | protected static function extendMaybeNamedType(?NamedType $type = null) |