We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -261,7 +261,7 @@ |
||
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 | } |
@@ -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) { |
@@ -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) { |
@@ -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 | } |
@@ -23,7 +23,7 @@ |
||
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', |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $this->expectExceptionMessage( |
23 | 23 | 'Enum class "invalid_class" does not exist.', |
24 | 24 | ); |
25 | - new PhpEnumType([ // @phpstan-ignore-line |
|
25 | + new PhpEnumType([// @phpstan-ignore-line |
|
26 | 26 | 'name' => 'MyEnum', |
27 | 27 | 'enumClass' => 'invalid_class', |
28 | 28 | ]); |
@@ -95,7 +95,7 @@ |
||
95 | 95 | yield ['object', $reflectorClass, 'Tag @'.$tag.' found, but type "object" is too generic']; |
96 | 96 | yield ['mixed[]', $reflectorClass, 'Tag @'.$tag.' found, but the array values cannot be mixed type']; |
97 | 97 | yield ['array<mixed>', $reflectorClass, 'Tag @'.$tag.' found, but the array values cannot be mixed type']; |
98 | - yield ['', $reflectorClass, 'No @'.$tag.' tag found in doc block or tag has no type', true]; // phpDocumentor/ReflectionDocBlock |
|
98 | + yield ['', $reflectorClass, 'No @'.$tag.' tag found in doc block or tag has no type', true]; // phpDocumentor/ReflectionDocBlock |
|
99 | 99 | yield ['[]', $reflectorClass, 'No @'.$tag.' tag found in doc block or tag has no type', true]; // phpDocumentor/ReflectionDocBlock |
100 | 100 | } |
101 | 101 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | private ?ResolverArgs $__resolverArgs; |
50 | 50 | |
51 | 51 | public function __construct( |
52 | - ObjectType|InputObjectType $type, |
|
52 | + ObjectType | InputObjectType $type, |
|
53 | 53 | string $field = null, |
54 | 54 | ValidationNode $parent = null, |
55 | 55 | ResolverArgs $resolverArgs = null |