Completed
Pull Request — master (#44)
by Daniel
06:29
created
Tests/DataProvider/TestField.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,13 +16,16 @@
 block discarded – undo
16 16
 {
17 17
 
18 18
     /**
19
-     * @return AbstractObjectType
19
+     * @return IntType
20 20
      */
21 21
     public function getType()
22 22
     {
23 23
         return new IntType();
24 24
     }
25 25
 
26
+    /**
27
+     * @param string $value
28
+     */
26 29
     public function resolve($value, array $args, ResolveInfo $info)
27 30
     {
28 31
         return $value;
Please login to merge, or discard this patch.
Tests/DataProvider/TestInputField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
 
18 18
     /**
19
-     * @return AbstractInputObjectType
19
+     * @return IntType
20 20
      */
21 21
     public function getType()
22 22
     {
Please login to merge, or discard this patch.
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 
43 43
     /**
44 44
      * @param AbstractObjectType      $objectType
45
-     * @param Mutation|Query|AstField $field
46
-     * @return null
45
+     * @param AstField $field
46
+     * @return boolean
47 47
      */
48 48
     public function objectHasField($objectType, $field)
49 49
     {
@@ -58,6 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     /**
60 60
      * @inheritdoc
61
+     * @param Query $query
61 62
      */
62 63
     public function validateArguments(AbstractField $field, $query, Request $request)
63 64
     {
Please login to merge, or discard this patch.
src/Execution/Processor.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     }
112 112
 
113 113
     /**
114
-     * @param Query|Field        $query
114
+     * @param Query        $query
115 115
      * @param AbstractObjectType $currentLevelSchema
116 116
      * @return array|bool|mixed
117 117
      */
@@ -260,6 +260,9 @@  discard block
 block discarded – undo
260 260
         }
261 261
     }
262 262
 
263
+    /**
264
+     * @param AbstractField $field
265
+     */
263 266
     protected function createResolveInfo($field, $fields) {
264 267
         return new ResolveInfo($field, $fields, $this->executionContext);
265 268
     }
@@ -322,7 +325,7 @@  discard block
 block discarded – undo
322 325
     }
323 326
 
324 327
     /**
325
-     * @param $query         Query|FragmentInterface
328
+     * @param Query $query         Query|FragmentInterface
326 329
      * @param $queryType     AbstractObjectType|TypeInterface|Field|AbstractType
327 330
      * @param $resolvedValue mixed
328 331
      * @param $value         array
@@ -494,7 +497,7 @@  discard block
 block discarded – undo
494 497
      * Fragments (anonymous and named), and Fields.  The core of the function is simple: recurse until we hit the base
495 498
      * case of a Field and yield that back up to the visitor up in `doVisit`.
496 499
      *
497
-     * @param Query|Field|FragmentInterface $queryNode
500
+     * @param Query $queryNode
498 501
      * @param AbstractField                 $currentLevelAST
499 502
      *
500 503
      * @return \Generator
Please login to merge, or discard this patch.