Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Test Failed
Pull Request — 0.14 (#933)
by Ruud
02:43
created
tests/EventListener/TypeDecoratorListenerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function testSpecialField($fieldName, Type $typeWithSpecialField, callable $fieldValueRetriever = null, $strict = true): void
33 33
     {
34 34
         if (null === $fieldValueRetriever) {
35
-            $fieldValueRetriever = fn (Type $type, $fieldName) => $type->config[$fieldName];
35
+            $fieldValueRetriever = fn(Type $type, $fieldName) => $type->config[$fieldName];
36 36
         }
37 37
         $expected = static function (): void {
38 38
         };
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
                 ];
66 66
             },
67 67
         ]);
68
-        $barResolver = static fn () => 'bar';
69
-        $bazResolver = static fn () => 'baz';
68
+        $barResolver = static fn() => 'bar';
69
+        $bazResolver = static fn() => 'baz';
70 70
 
71 71
         $this->decorate(
72 72
             [$objectType->name => $objectType],
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             [$objectType->name => $objectType],
100 100
             [
101 101
                 $objectType->name => [
102
-                    'bar' => fn ($value, $args) => $args,
102
+                    'bar' => fn($value, $args) => $args,
103 103
                 ],
104 104
             ]
105 105
         );
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             [
249 249
                 ResolverMapInterface::RESOLVE_FIELD,
250 250
                 $objectWithResolveField,
251
-                fn (ObjectType $type) => $type->resolveFieldFn,
251
+                fn(ObjectType $type) => $type->resolveFieldFn,
252 252
                 false,
253 253
             ],
254 254
             [ResolverMapInterface::RESOLVE_FIELD, $objectWithResolveField, null, false],
Please login to merge, or discard this patch.
tests/Resolver/TypeResolverTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     protected function getResolverSolutionsMapping(): array
19 19
     {
20 20
         return [
21
-            'Toto' => ['factory' => fn () => $this->createObjectType(['name' => 'Toto']), 'aliases' => ['foo']],
22
-            'Tata' => ['factory' => fn () => $this->createObjectType(['name' => 'Tata']), 'aliases' => ['bar']],
21
+            'Toto' => ['factory' => fn() => $this->createObjectType(['name' => 'Toto']), 'aliases' => ['foo']],
22
+            'Tata' => ['factory' => fn() => $this->createObjectType(['name' => 'Tata']), 'aliases' => ['bar']],
23 23
         ];
24 24
     }
25 25
 
Please login to merge, or discard this patch.
tests/Resolver/Toto.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     public function getPrivatePropertyWithoutGetterUsingCallBack(): Closure
34 34
     {
35
-        return fn () => $this->privatePropertyWithoutGetter;
35
+        return fn() => $this->privatePropertyWithoutGetter;
36 36
     }
37 37
 
38 38
     public function resolve(): array
Please login to merge, or discard this patch.
tests/Config/Parser/MetadataParserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@
 block discarded – undo
261 261
     public function testUnionAutoguessed(): void
262 262
     {
263 263
         $this->expect('Killable', 'union', [
264
-            'types' => ['Hero', 'Mandalorian',  'Sith'],
264
+            'types' => ['Hero', 'Mandalorian', 'Sith'],
265 265
             'resolveType' => '@=value.getType()',
266 266
         ]);
267 267
     }
Please login to merge, or discard this patch.
tests/Config/Parser/TestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
             }
36 36
         }
37 37
 
38
-        return array_filter($config, fn ($item) => !is_array($item) || !empty($item));
38
+        return array_filter($config, fn($item) => !is_array($item) || !empty($item));
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
tests/Executor/Promise/Adapter/ReactPromiseAdapterTest.php 1 patch
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,6 +81,4 @@
 block discarded – undo
81 81
         $reactAdapter->convertThenable($promise);
82 82
 
83 83
         $this->assertInstanceOf(Promise::class, $promise);
84
-        $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise); // @phpstan-ignore-line
85
-    }
86
-}
84
+        $this->assertInstanceOf(FulfilledPromise::class, $promise->adoptedPromise
87 85
\ No newline at end of file
Please login to merge, or discard this patch.
tests/ExpressionLanguage/TestCase.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,13 +106,13 @@
 block discarded – undo
106 106
     protected function createGraphQLServices(array $services = []): GraphQLServices
107 107
     {
108 108
         $locateableServices = [
109
-            'typeResolver' => fn () => $this->createMock(TypeResolver::class),
110
-            'queryResolver' => fn () => $this->createMock(TypeResolver::class),
111
-            'mutationResolver' => fn () => $$this->createMock(MutationResolver::class),
109
+            'typeResolver' => fn() => $this->createMock(TypeResolver::class),
110
+            'queryResolver' => fn() => $this->createMock(TypeResolver::class),
111
+            'mutationResolver' => fn() => $$this->createMock(MutationResolver::class),
112 112
         ];
113 113
 
114 114
         foreach ($services as $id => $service) {
115
-            $locateableServices[$id] = fn () => $service;
115
+            $locateableServices[$id] = fn() => $service;
116 116
         }
117 117
 
118 118
         return new GraphQLServices($locateableServices);
Please login to merge, or discard this patch.
tests/Definition/Type/CustomScalarTypeTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
     public function testScalarTypeConfig(): void
23 23
     {
24 24
         $this->assertScalarTypeConfig(new YearScalarType());
25
-        $this->assertScalarTypeConfig(fn () => new YearScalarType());
25
+        $this->assertScalarTypeConfig(fn() => new YearScalarType());
26 26
     }
27 27
 
28 28
     public function testWithoutScalarTypeConfig(): void
29 29
     {
30
-        $genericFunc = fn ($value) => $value;
30
+        $genericFunc = fn($value) => $value;
31 31
         $type = new CustomScalarType([
32 32
             'serialize' => $genericFunc,
33 33
             'parseValue' => $genericFunc,
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
         yield [false, 'false'];
75 75
         yield [new stdClass(), 'instance of stdClass'];
76 76
         yield [
77
-            fn () => false,
77
+            fn() => false,
78 78
             'false',
79 79
         ];
80 80
         yield [
81
-            fn () => new stdClass(),
81
+            fn() => new stdClass(),
82 82
             'instance of stdClass',
83 83
         ];
84 84
     }
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
     {
93 93
         $type = new CustomScalarType([
94 94
             'scalarType' => $scalarType,
95
-            'serialize' => fn () => 'serialize',
96
-            'parseValue' => fn () => 'parseValue',
97
-            'parseLiteral' => fn () => 'parseLiteral',
95
+            'serialize' => fn() => 'serialize',
96
+            'parseValue' => fn() => 'parseValue',
97
+            'parseLiteral' => fn() => 'parseLiteral',
98 98
         ]);
99 99
 
100 100
         $this->assertSame('50 AC', $type->serialize(50));
Please login to merge, or discard this patch.
tests/Functional/Relay/Node/NodeTest.php 1 patch
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -281,6 +281,4 @@
 block discarded – undo
281 281
             ],
282 282
         ];
283 283
 
284
-        $this->assertGraphQL($query, $expectedData);
285
-    }
286
-}
284
+        $this->assertGraphQL($query, $expectedData
287 285
\ No newline at end of file
Please login to merge, or discard this patch.