We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -95,7 +95,7 @@ |
||
95 | 95 | * @param GraphQLError[] $errors |
96 | 96 | * @param bool $throwRawException |
97 | 97 | * |
98 | - * @return array |
|
98 | + * @return callable |
|
99 | 99 | * |
100 | 100 | * @throws \Error|\Exception |
101 | 101 | */ |
@@ -42,6 +42,9 @@ |
||
42 | 42 | return $this->call('parseLiteral', $valueNode); |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param string $type |
|
47 | + */ |
|
45 | 48 | private function call($type, $value) |
46 | 49 | { |
47 | 50 | if (isset($this->config['scalarType'])) { |
@@ -82,6 +82,9 @@ |
||
82 | 82 | return $covered; |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param callable[] $map |
|
87 | + */ |
|
85 | 88 | private function checkMap($map): void |
86 | 89 | { |
87 | 90 | if (!\is_array($map) && !($map instanceof \ArrayAccess && $map instanceof \Traversable)) { |
@@ -63,6 +63,9 @@ |
||
63 | 63 | return \call_user_func_array($resolveCallback, $resolveArgs); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param callable $accessChecker |
|
68 | + */ |
|
66 | 69 | private function processFilter($result, $accessChecker, $resolveArgs) |
67 | 70 | { |
68 | 71 | /** @var ResolveInfo $resolveInfo */ |
@@ -251,8 +251,7 @@ discard block |
||
251 | 251 | /** |
252 | 252 | * Create a GraphQL Interface type configuration from annotations on properties. |
253 | 253 | * |
254 | - * @param string $shortClassName |
|
255 | - * @param GQL\Interface $interfaceAnnotation |
|
254 | + * @param GQL\TypeInterface $interfaceAnnotation |
|
256 | 255 | * @param array $properties |
257 | 256 | * @param array $methods |
258 | 257 | * @param string $namespace |
@@ -277,7 +276,6 @@ discard block |
||
277 | 276 | /** |
278 | 277 | * Create a GraphQL Input type configuration from annotations on properties. |
279 | 278 | * |
280 | - * @param string $shortClassName |
|
281 | 279 | * @param GQL\Input $inputAnnotation |
282 | 280 | * @param array $properties |
283 | 281 | * @param string $namespace |
@@ -302,7 +300,6 @@ discard block |
||
302 | 300 | /** |
303 | 301 | * Get a Graphql scalar configuration from given scalar annotation. |
304 | 302 | * |
305 | - * @param string $shortClassName |
|
306 | 303 | * @param string $className |
307 | 304 | * @param GQL\Scalar $scalarAnnotation |
308 | 305 | * @param array $classAnnotations |
@@ -331,7 +328,6 @@ discard block |
||
331 | 328 | /** |
332 | 329 | * Get a Graphql Enum configuration from given enum annotation. |
333 | 330 | * |
334 | - * @param string $shortClassName |
|
335 | 331 | * @param GQL\Enum $enumAnnotation |
336 | 332 | * @param array $classAnnotations |
337 | 333 | * @param array $constants |
@@ -371,7 +367,6 @@ discard block |
||
371 | 367 | /** |
372 | 368 | * Get a Graphql Union configuration from given union annotation. |
373 | 369 | * |
374 | - * @param string $shortClassName |
|
375 | 370 | * @param GQL\Union $unionAnnotation |
376 | 371 | * @param array $classAnnotations |
377 | 372 | * |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * @param string $type |
93 | 93 | * @param SplFileInfo[] $files |
94 | 94 | * @param ContainerBuilder $container |
95 | - * @param array $config |
|
95 | + * @param array $configs |
|
96 | 96 | */ |
97 | 97 | private function preParseTypeConfigFiles($type, $files, ContainerBuilder $container, array $configs): void |
98 | 98 | { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * @param $type |
114 | 114 | * @param SplFileInfo[] $files |
115 | 115 | * @param ContainerBuilder $container |
116 | - * @param array $config |
|
116 | + * @param array $configs |
|
117 | 117 | * |
118 | 118 | * @return array |
119 | 119 | */ |
@@ -20,6 +20,9 @@ |
||
20 | 20 | /** @var ConstraintViolationListInterface */ |
21 | 21 | private $errors = []; |
22 | 22 | |
23 | + /** |
|
24 | + * @param string $name |
|
25 | + */ |
|
23 | 26 | public function __construct($name, ConstraintViolationListInterface $errors, $message = '', $code = 0, \Exception $previous = null) |
24 | 27 | { |
25 | 28 | $this->name = $name; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * @return InvalidArgumentError[] |
|
24 | + * @return InvalidArgumentError |
|
25 | 25 | */ |
26 | 26 | public function getErrors() |
27 | 27 | { |