We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -18,28 +18,3 @@ |
||
18 | 18 | public function testExceptionIsMappedToAWarning(): void |
19 | 19 | { |
20 | 20 | $query = <<<'EOF' |
21 | - query ExceptionQuery { |
|
22 | - test |
|
23 | - } |
|
24 | - EOF; |
|
25 | - |
|
26 | - $expectedData = [ |
|
27 | - 'test' => null, |
|
28 | - ]; |
|
29 | - |
|
30 | - $expectedErrors = [ |
|
31 | - [ |
|
32 | - 'message' => 'Invalid argument exception', |
|
33 | - 'locations' => [ |
|
34 | - [ |
|
35 | - 'line' => 2, |
|
36 | - 'column' => 5, |
|
37 | - ], |
|
38 | - ], |
|
39 | - 'path' => ['test'], |
|
40 | - ], |
|
41 | - ]; |
|
42 | - |
|
43 | - $this->assertGraphQL($query, $expectedData, $expectedErrors); |
|
44 | - } |
|
45 | -} |
@@ -18,28 +18,3 @@ |
||
18 | 18 | public function testExceptionIsMappedToAWarning(): void |
19 | 19 | { |
20 | 20 | $query = <<<'EOF' |
21 | - query ExceptionQuery { |
|
22 | - test |
|
23 | - } |
|
24 | - EOF; |
|
25 | - |
|
26 | - $expectedData = [ |
|
27 | - 'test' => null, |
|
28 | - ]; |
|
29 | - |
|
30 | - $expectedErrors = [ |
|
31 | - [ |
|
32 | - 'message' => 'Invalid argument exception', |
|
33 | - 'locations' => [ |
|
34 | - [ |
|
35 | - 'line' => 2, |
|
36 | - 'column' => 5, |
|
37 | - ], |
|
38 | - ], |
|
39 | - 'path' => ['test'], |
|
40 | - ], |
|
41 | - ]; |
|
42 | - |
|
43 | - $this->assertGraphQL($query, $expectedData, $expectedErrors); |
|
44 | - } |
|
45 | -} |
@@ -18,28 +18,3 @@ |
||
18 | 18 | public function testExceptionIsMappedToAWarning(): void |
19 | 19 | { |
20 | 20 | $query = <<<'EOF' |
21 | - query ExceptionQuery { |
|
22 | - test |
|
23 | - } |
|
24 | - EOF; |
|
25 | - |
|
26 | - $expectedData = [ |
|
27 | - 'test' => null, |
|
28 | - ]; |
|
29 | - |
|
30 | - $expectedErrors = [ |
|
31 | - [ |
|
32 | - 'message' => 'Invalid argument exception', |
|
33 | - 'locations' => [ |
|
34 | - [ |
|
35 | - 'line' => 2, |
|
36 | - 'column' => 5, |
|
37 | - ], |
|
38 | - ], |
|
39 | - 'path' => ['test'], |
|
40 | - ], |
|
41 | - ]; |
|
42 | - |
|
43 | - $this->assertGraphQL($query, $expectedData, $expectedErrors); |
|
44 | - } |
|
45 | -} |
@@ -18,28 +18,3 @@ |
||
18 | 18 | public function testExceptionIsMappedToAWarning(): void |
19 | 19 | { |
20 | 20 | $query = <<<'EOF' |
21 | - query ExceptionQuery { |
|
22 | - test |
|
23 | - } |
|
24 | - EOF; |
|
25 | - |
|
26 | - $expectedData = [ |
|
27 | - 'test' => null, |
|
28 | - ]; |
|
29 | - |
|
30 | - $expectedErrors = [ |
|
31 | - [ |
|
32 | - 'message' => 'Invalid argument exception', |
|
33 | - 'locations' => [ |
|
34 | - [ |
|
35 | - 'line' => 2, |
|
36 | - 'column' => 5, |
|
37 | - ], |
|
38 | - ], |
|
39 | - 'path' => ['test'], |
|
40 | - ], |
|
41 | - ]; |
|
42 | - |
|
43 | - $this->assertGraphQL($query, $expectedData, $expectedErrors); |
|
44 | - } |
|
45 | -} |
@@ -18,28 +18,3 @@ |
||
18 | 18 | public function testExceptionIsMappedToAWarning(): void |
19 | 19 | { |
20 | 20 | $query = <<<'EOF' |
21 | - query ExceptionQuery { |
|
22 | - test |
|
23 | - } |
|
24 | - EOF; |
|
25 | - |
|
26 | - $expectedData = [ |
|
27 | - 'test' => null, |
|
28 | - ]; |
|
29 | - |
|
30 | - $expectedErrors = [ |
|
31 | - [ |
|
32 | - 'message' => 'Invalid argument exception', |
|
33 | - 'locations' => [ |
|
34 | - [ |
|
35 | - 'line' => 2, |
|
36 | - 'column' => 5, |
|
37 | - ], |
|
38 | - ], |
|
39 | - 'path' => ['test'], |
|
40 | - ], |
|
41 | - ]; |
|
42 | - |
|
43 | - $this->assertGraphQL($query, $expectedData, $expectedErrors); |
|
44 | - } |
|
45 | -} |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | public function testSpecialField($fieldName, ObjectType | UnionType | InterfaceType | CustomScalarType $typeWithSpecialField, callable $fieldValueRetriever = null, $strict = true): void |
34 | 34 | { |
35 | 35 | if (null === $fieldValueRetriever) { |
36 | - $fieldValueRetriever = fn (ObjectType | UnionType | InterfaceType | CustomScalarType $type, $fieldName) => $type->config[$fieldName]; |
|
36 | + $fieldValueRetriever = fn(ObjectType | UnionType | InterfaceType | CustomScalarType $type, $fieldName) => $type->config[$fieldName]; |
|
37 | 37 | } |
38 | 38 | $expected = static function (): void { |
39 | 39 | }; |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | ]; |
67 | 67 | }, |
68 | 68 | ]); |
69 | - $barResolver = static fn () => 'bar'; |
|
70 | - $bazResolver = static fn () => 'baz'; |
|
69 | + $barResolver = static fn() => 'bar'; |
|
70 | + $bazResolver = static fn() => 'baz'; |
|
71 | 71 | |
72 | 72 | $this->decorate( |
73 | 73 | [$objectType->name => $objectType], |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | [$objectType->name => $objectType], |
101 | 101 | [ |
102 | 102 | $objectType->name => [ |
103 | - 'bar' => fn ($value, $args) => $args, |
|
103 | + 'bar' => fn($value, $args) => $args, |
|
104 | 104 | ], |
105 | 105 | ] |
106 | 106 | ); |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | [ |
251 | 251 | ResolverMapInterface::RESOLVE_FIELD, |
252 | 252 | $objectWithResolveField, |
253 | - fn (ObjectType $type) => $type->resolveFieldFn, |
|
253 | + fn(ObjectType $type) => $type->resolveFieldFn, |
|
254 | 254 | false, |
255 | 255 | ], |
256 | 256 | [ResolverMapInterface::RESOLVE_FIELD, $objectWithResolveField, null, false], |
@@ -34,7 +34,7 @@ |
||
34 | 34 | ?string $type = null, |
35 | 35 | ?string $resolve = null, |
36 | 36 | ?string $complexity = null, |
37 | - array|string|null $targetTypes = null |
|
37 | + array | string | null $targetTypes = null |
|
38 | 38 | ) { |
39 | 39 | parent::__construct($name, $type, $resolve, $complexity); |
40 | 40 | if ($targetTypes) { |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | |
347 | 347 | $buildersAnnotations = self::getMetadataMatching($metadatas, Metadata\FieldsBuilder::class); |
348 | 348 | if (!empty($buildersAnnotations)) { |
349 | - $typeConfiguration['builders'] = array_map(fn ($fieldsBuilderAnnotation) => ['builder' => $fieldsBuilderAnnotation->name, 'builderConfig' => $fieldsBuilderAnnotation->config], $buildersAnnotations); |
|
349 | + $typeConfiguration['builders'] = array_map(fn($fieldsBuilderAnnotation) => ['builder' => $fieldsBuilderAnnotation->name, 'builderConfig' => $fieldsBuilderAnnotation->config], $buildersAnnotations); |
|
350 | 350 | } |
351 | 351 | |
352 | 352 | if (isset($typeAnnotation->isTypeOf)) { |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | $reflectionConstant = new ReflectionClassConstant($reflectionClass->getName(), $name); |
441 | 441 | $valueConfig = self::getDescriptionConfiguration(static::getMetadatas($reflectionConstant), true); |
442 | 442 | |
443 | - $enumValueAnnotation = current(array_filter($enumValues, fn ($enumValueAnnotation) => $enumValueAnnotation->name === $name)); |
|
443 | + $enumValueAnnotation = current(array_filter($enumValues, fn($enumValueAnnotation) => $enumValueAnnotation->name === $name)); |
|
444 | 444 | $valueConfig['value'] = $value; |
445 | 445 | |
446 | 446 | if (false !== $enumValueAnnotation) { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | ?string $type = null, |
35 | 35 | ?string $resolve = null, |
36 | 36 | ?string $complexity = null, |
37 | - array|string|null $targetTypes = null |
|
37 | + array | string | null $targetTypes = null |
|
38 | 38 | ) { |
39 | 39 | parent::__construct($name, $type, $resolve, $complexity); |
40 | 40 | if ($targetTypes) { |