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
Push — master ( 8d989e...17149a )
by Jérémiah
01:31 queued 12s
created
src/Definition/Builder/SchemaBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     public function getBuilder(string $name, ?string $queryAlias, ?string $mutationAlias = null, ?string $subscriptionAlias = null, array $types = []): Closure
26 26
     {
27
-        return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types): ExtensibleSchema {
27
+        return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types) : ExtensibleSchema {
28 28
             static $schema = null;
29 29
             if (null === $schema) {
30 30
                 $schema = $this->create($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types);
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.
src/Annotation/Mutation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Annotation/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Validator/ValidationNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     private ?ResolverArgs $__resolverArgs;
47 47
 
48 48
     public function __construct(
49
-        ObjectType|InputObjectType $type,
49
+        ObjectType | InputObjectType $type,
50 50
         string $field = null,
51 51
         ?ValidationNode $parent = null,
52 52
         ?ResolverArgs $resolverArgs = null
Please login to merge, or discard this patch.
src/Validator/InputValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * @throws ArgumentsValidationException
64 64
      */
65
-    public function validate(string|array|null $groups = null, bool $throw = true): ?ConstraintViolationListInterface
65
+    public function validate(string | array | null $groups = null, bool $throw = true): ?ConstraintViolationListInterface
66 66
     {
67 67
         $rootNode = new ValidationNode(
68 68
             $this->info->parentType,
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         return $rootObject;
207 207
     }
208 208
 
209
-    private static function isListOfType(GeneratedTypeInterface|ListOfType|NonNull $type): bool
209
+    private static function isListOfType(GeneratedTypeInterface | ListOfType | NonNull $type): bool
210 210
     {
211 211
         if ($type instanceof ListOfType || ($type instanceof NonNull && $type->getWrappedType() instanceof ListOfType)) {
212 212
             return true;
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         return false;
216 216
     }
217 217
 
218
-    private function createCollectionNode(array $values, ObjectType|InputObjectType $type, ValidationNode $parent): array
218
+    private function createCollectionNode(array $values, ObjectType | InputObjectType $type, ValidationNode $parent): array
219 219
     {
220 220
         $collection = [];
221 221
 
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         return $collection;
227 227
     }
228 228
 
229
-    private function createObjectNode(array $value, ObjectType|InputObjectType $type, ValidationNode $parent): ValidationNode
229
+    private function createObjectNode(array $value, ObjectType | InputObjectType $type, ValidationNode $parent): ValidationNode
230 230
     {
231 231
         /** @phpstan-ignore-next-line */
232 232
         $classValidation = static::normalizeConfig($type->config['validation'] ?? []);
Please login to merge, or discard this patch.
src/EventListener/TypeDecoratorListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this->decorateObjectTypeFields($type, $fieldsResolved, $resolverMap);
89 89
     }
90 90
 
91
-    private function decorateInterfaceOrUnionType(InterfaceType|UnionType $type, ResolverMapInterface $resolverMap): void
91
+    private function decorateInterfaceOrUnionType(InterfaceType | UnionType $type, ResolverMapInterface $resolverMap): void
92 92
     {
93 93
         $this->configTypeMapping($type, ResolverMapInterface::RESOLVE_TYPE, $resolverMap);
94 94
         $covered = $resolverMap->covered($type->name);
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         $type->config['fields'] = is_callable($fields) ? $decoratedFields : $decoratedFields();
211 211
     }
212 212
 
213
-    private function configTypeMapping(ObjectType|InterfaceType|UnionType|CustomScalarType $type, string $fieldName, ResolverMapInterface $resolverMap): void
213
+    private function configTypeMapping(ObjectType | InterfaceType | UnionType | CustomScalarType $type, string $fieldName, ResolverMapInterface $resolverMap): void
214 214
     {
215 215
         if ($resolverMap->isResolvable($type->name, $fieldName)) {
216 216
             /** @phpstan-ignore-next-line */
Please login to merge, or discard this patch.
tests/EventListener/TypeDecoratorListenerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @dataProvider specialTypeFieldProvider
34 34
      */
35
-    public function testSpecialField($fieldName, ObjectType|UnionType|InterfaceType|CustomScalarType $typeWithSpecialField, callable $fieldValueRetriever = null, $strict = true): void
35
+    public function testSpecialField($fieldName, ObjectType | UnionType | InterfaceType | CustomScalarType $typeWithSpecialField, callable $fieldValueRetriever = null, $strict = true): void
36 36
     {
37 37
         if (null === $fieldValueRetriever) {
38
-            $fieldValueRetriever = fn (ObjectType|UnionType|InterfaceType|CustomScalarType $type, $fieldName) => $type->config[$fieldName];
38
+            $fieldValueRetriever = fn (ObjectType | UnionType | InterfaceType | CustomScalarType $type, $fieldName) => $type->config[$fieldName];
39 39
         }
40 40
         $expected = static function (): void {
41 41
         };
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
             // custom scalar
292 292
             [ResolverMapInterface::SERIALIZE, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input): mixed => ''])],
293 293
             [ResolverMapInterface::PARSE_VALUE, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input): mixed => '', 'parseValue' => fn (mixed $input): mixed => ''])],
294
-            [ResolverMapInterface::PARSE_LITERAL, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input): mixed => '', 'parseLiteral' => fn (Node $a, array|null $b): mixed => ''])],
294
+            [ResolverMapInterface::PARSE_LITERAL, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input): mixed => '', 'parseLiteral' => fn (Node $a, array | null $b): mixed => ''])],
295 295
             [ResolverMapInterface::SCALAR_TYPE, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input): mixed => ''])],
296 296
         ];
297 297
     }
Please login to merge, or discard this patch.
tests/Functional/Type/DefinitionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         /** @var EnumType $enumTypeWithDeprecatedValue */
24 24
         $enumTypeWithDeprecatedValue = $this->getType('EnumWithDeprecatedValue');
25 25
         $value = $enumTypeWithDeprecatedValue->getValues()[0];
26
-        $this->assertSame([ // @phpstan-ignore-line
26
+        $this->assertSame([// @phpstan-ignore-line
27 27
             'deprecationReason' => 'Just because',
28 28
             'value' => 'foo',
29 29
             'name' => 'foo',
Please login to merge, or discard this patch.