We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -88,7 +88,7 @@ discard block |
||
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 |
||
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 */ |
@@ -32,10 +32,10 @@ discard block |
||
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 |
||
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 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | enum EnumPhpBacked: string |
8 | 8 | { |
9 | - case VALUE1 = 'v1' ; |
|
9 | + case VALUE1 = 'v1'; |
|
10 | 10 | case VALUE2 = 'v2'; |
11 | 11 | case VALUE3 = 'v3'; |
12 | 12 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | public static function resolveQueryEnumAsInput(mixed $enumParam = null, mixed $enumParam2 = null): string |
43 | 43 | { |
44 | - return (EnumPhp::VALUE2 === $enumParam && EnumPhpBacked::VALUE3 === $enumParam2) ? 'OK' : 'KO'; |
|
44 | + return (EnumPhp::VALUE2 === $enumParam && EnumPhpBacked::VALUE3 === $enumParam2) ? 'OK' : 'KO'; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | public function testEnumLiteralParsedAsPhpEnum(): void |