Failed Conditions
Pull Request — master (#569)
by Max
08:35
created
src/Language/Printer.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -463,6 +463,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Server/Helper.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -53,6 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Server/StandardServer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Type/Definition/FieldDefinition.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Type/Definition/ResolveInfo.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,6 +117,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Type/Definition/Type.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@
 block discarded – undo
307 307
     }
308 308
 
309 309
     /**
310
-     * @param mixed $type
310
+     * @param callable $type
311 311
      *
312 312
      * @return mixed
313 313
      */
Please login to merge, or discard this patch.
src/Utils/AST.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -587,7 +587,7 @@
 block discarded – undo
587 587
      *
588 588
      * @param string $operationName
589 589
      *
590
-     * @return bool
590
+     * @return string|false
591 591
      *
592 592
      * @api
593 593
      */
Please login to merge, or discard this patch.
src/Utils/ASTDefinitionBuilder.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,6 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
159 160
     }
160 161
 
161 162
     /**
162
-     * @return Type|InputType
163
+     * @return Type
163 164
      *
164 165
      * @throws Error
165 166
      */
Please login to merge, or discard this patch.
src/Utils/BlockString.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.