We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * @param int|callable $total |
91 | 91 | * @param array $callableArgs |
92 | 92 | * |
93 | - * @return Connection|object A connection or a promise |
|
93 | + * @return Connection A connection or a promise |
|
94 | 94 | */ |
95 | 95 | public function auto($args, $total, $callableArgs = []) |
96 | 96 | { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
134 | - * @param Argument|array $args |
|
134 | + * @param Argument $args |
|
135 | 135 | * |
136 | 136 | * @return Argument |
137 | 137 | */ |
@@ -52,6 +52,9 @@ |
||
52 | 52 | } |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @return string |
|
57 | + */ |
|
55 | 58 | private function guessTagName(Definition $definition) |
56 | 59 | { |
57 | 60 | $tagName = null; |
@@ -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 | */ |
@@ -48,7 +48,7 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * @param \Throwable $throwable |
|
51 | + * @param \Exception $throwable |
|
52 | 52 | * @param string $errorLevel |
53 | 53 | */ |
54 | 54 | public function log($throwable, $errorLevel = LogLevel::ERROR) |
@@ -67,6 +67,9 @@ |
||
67 | 67 | ]; |
68 | 68 | } |
69 | 69 | |
70 | + /** |
|
71 | + * @param string $message |
|
72 | + */ |
|
70 | 73 | private static function createError($message, \Exception $exception = null) |
71 | 74 | { |
72 | 75 | return new Error($message, null, null, null, null, $exception); |
@@ -58,6 +58,9 @@ |
||
58 | 58 | return $this->createResponse($request, $schemaName, true); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param boolean $batched |
|
63 | + */ |
|
61 | 64 | private function createResponse(Request $request, $schemaName, $batched) |
62 | 65 | { |
63 | 66 | if ('OPTIONS' === $request->getMethod()) { |
@@ -37,6 +37,9 @@ |
||
37 | 37 | return $item->get(); |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $alias |
|
42 | + */ |
|
40 | 43 | private function string2Type($alias) |
41 | 44 | { |
42 | 45 | if (false !== ($type = $this->wrapTypeIfNeeded($alias))) { |
@@ -59,6 +59,9 @@ |
||
59 | 59 | GraphQLParser::mustOverrideConfig(); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $fileName |
|
64 | + */ |
|
62 | 65 | private function assertContainerAddFileToResources($fileName) |
63 | 66 | { |
64 | 67 | $this->containerBuilder->expects($this->once()) |
@@ -269,6 +269,9 @@ discard block |
||
269 | 269 | ]; |
270 | 270 | } |
271 | 271 | |
272 | + /** |
|
273 | + * @param string $exceptionMessage |
|
274 | + */ |
|
272 | 275 | private function assertDecorateException(array $types, array $map, $exception = null, $exceptionMessage = null) |
273 | 276 | { |
274 | 277 | if ($exception) { |
@@ -289,7 +292,7 @@ discard block |
||
289 | 292 | /** |
290 | 293 | * @param array $types |
291 | 294 | * |
292 | - * @return \PHPUnit\Framework\MockObject\MockObject|Schema |
|
295 | + * @return Schema |
|
293 | 296 | */ |
294 | 297 | private function createSchemaMock(array $types = []) |
295 | 298 | { |
@@ -309,7 +312,7 @@ discard block |
||
309 | 312 | /** |
310 | 313 | * @param array $map |
311 | 314 | * |
312 | - * @return \PHPUnit\Framework\MockObject\MockObject|ResolverMap |
|
315 | + * @return ResolverMapInterface |
|
313 | 316 | */ |
314 | 317 | private function createResolverMapMock(array $map = []) |
315 | 318 | { |