We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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 | ]); |
@@ -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 |
@@ -33,10 +33,10 @@ discard block |
||
| 33 | 33 | * |
| 34 | 34 | * @dataProvider specialTypeFieldProvider |
| 35 | 35 | */ |
| 36 | - public function testSpecialField($fieldName, ObjectType|UnionType|InterfaceType|CustomScalarType $typeWithSpecialField, ?callable $fieldValueRetriever = null, $strict = true): void |
|
| 36 | + public function testSpecialField($fieldName, ObjectType | UnionType | InterfaceType | CustomScalarType $typeWithSpecialField, ?callable $fieldValueRetriever = null, $strict = true): void |
|
| 37 | 37 | { |
| 38 | 38 | if (null === $fieldValueRetriever) { |
| 39 | - $fieldValueRetriever = fn (ObjectType|UnionType|InterfaceType|CustomScalarType $type, $fieldName) => $type->config[$fieldName]; |
|
| 39 | + $fieldValueRetriever = fn (ObjectType | UnionType | InterfaceType | CustomScalarType $type, $fieldName) => $type->config[$fieldName]; |
|
| 40 | 40 | } |
| 41 | 41 | $expected = static function (): void { |
| 42 | 42 | }; |
@@ -292,8 +292,8 @@ discard block |
||
| 292 | 292 | // custom scalar |
| 293 | 293 | [ResolverMapInterface::SERIALIZE, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input): mixed => ''])], |
| 294 | 294 | [ResolverMapInterface::PARSE_VALUE, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input): mixed => '', 'parseValue' => fn (mixed $input): mixed => ''])], |
| 295 | - [ResolverMapInterface::PARSE_LITERAL, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input): mixed => '', 'parseLiteral' => fn (Node $a, ?array $b): mixed => ''])], |
|
| 296 | - [ResolverMapInterface::SCALAR_TYPE, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input): mixed => ''])], |
|
| 295 | + [ResolverMapInterface::PARSE_LITERAL, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input): mixed => '', 'parseLiteral' => fn (Node $a, ?array $b) : mixed => ''])], |
|
| 296 | + [ResolverMapInterface::SCALAR_TYPE, new CustomScalarType(['name' => 'Custom', 'scalarType' => Type::string(), 'serialize' => fn (mixed $input) : mixed => ''])], |
|
| 297 | 297 | ]; |
| 298 | 298 | } |
| 299 | 299 | |