@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine\Annotation; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine\Annotation; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine\Annotation; |
6 | 6 |
@@ -66,7 +66,7 @@ |
||
66 | 66 | * Return the getter/isser method if any valid one exists |
67 | 67 | * @param mixed $source |
68 | 68 | * @param string $name |
69 | - * @return string |
|
69 | + * @return ReflectionMethod|null |
|
70 | 70 | */ |
71 | 71 | private function getGetter($source, string $name): ?ReflectionMethod |
72 | 72 | { |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine; |
6 | 6 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @param string $fieldName |
38 | 38 | * @return mixed |
39 | 39 | */ |
40 | - private function resolveObject($source, ?array $args, string $fieldName) |
|
40 | + private function resolveObject($source, ? array $args, string $fieldName) |
|
41 | 41 | { |
42 | 42 | $getter = $this->getGetter($source, $fieldName); |
43 | 43 | if ($getter) { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * @param array $args |
92 | 92 | * @return array |
93 | 93 | */ |
94 | - private function orderArguments(ReflectionMethod $method, ?array $args): array |
|
94 | + private function orderArguments(ReflectionMethod $method, ? array $args) : array |
|
95 | 95 | { |
96 | 96 | $result = []; |
97 | 97 | foreach ($method->getParameters() as $param) { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * Serializes an internal value to include in a response. |
40 | 40 | * |
41 | 41 | * @param mixed $value |
42 | - * @return mixed |
|
42 | + * @return string |
|
43 | 43 | */ |
44 | 44 | public function serialize($value) |
45 | 45 | { |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine\Definition; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace GraphQL\Doctrine\Annotation; |
6 | 6 |