Completed
Pull Request — master (#51)
by Philipp
03:22
created
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/Type/Object/AbstractObjectType.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -87,6 +87,9 @@
 block discarded – undo
87 87
         return $this->getConfigValue('interfaces', []);
88 88
     }
89 89
 
90
+    /**
91
+     * @param ObjectType|null $value
92
+     */
90 93
     public function isValidValue($value)
91 94
     {
92 95
         return is_array($value) || is_null($value) || is_object($value);
Please login to merge, or discard this patch.
src/Config/Traits/ResolvableObjectTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
 
14 14
 trait ResolvableObjectTrait {
15 15
 
16
+  /**
17
+   * @param string|boolean $value
18
+   */
16 19
   public function resolve($value, array $args, ResolveInfo $info)
17 20
   {
18 21
     if ($this->resolveFunctionCache === null) {
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
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     }
105 105
 
106 106
     /**
107
-     * @param Query|Field        $query
107
+     * @param Query        $query
108 108
      * @param AbstractObjectType $currentLevelSchema
109 109
      * @return array|bool|mixed
110 110
      */
@@ -236,6 +236,9 @@  discard block
 block discarded – undo
236 236
         return $value;
237 237
     }
238 238
 
239
+    /**
240
+     * @param FieldInterface $field
241
+     */
239 242
     protected function createResolveInfo($field, $fields)
240 243
     {
241 244
         return new ResolveInfo($field, $fields, $this->executionContext);
@@ -284,7 +287,7 @@  discard block
 block discarded – undo
284 287
     }
285 288
 
286 289
     /**
287
-     * @param $query         Query|FragmentInterface
290
+     * @param Query $query         Query|FragmentInterface
288 291
      * @param $queryType     AbstractObjectType|TypeInterface|Field|AbstractType
289 292
      * @param $resolvedValue mixed
290 293
      * @param $value         array
@@ -462,7 +465,7 @@  discard block
 block discarded – undo
462 465
      * Fragments (anonymous and named), and Fields.  The core of the function is simple: recurse until we hit the base
463 466
      * case of a Field and yield that back up to the visitor up in `doVisit`.
464 467
      *
465
-     * @param Query|Field|FragmentInterface $queryNode
468
+     * @param Query $queryNode
466 469
      * @param FieldInterface                 $currentLevelAST
467 470
      *
468 471
      * @return \Generator
Please login to merge, or discard this patch.