Transfer config in schema extender - #1672
Draft
Warxcell wants to merge 7 commits into
Draft
Annotations
6 errors
|
Run a static analysis with phpstan/phpstan
Process completed with exit code 1.
|
|
Run a static analysis with phpstan/phpstan:
tests/Utils/SchemaExtenderTest.php#L1876
Call to static method PHPUnit\Framework\Assert::assertArrayHasKey() with 'customAttr' and array{name: string, type: (callable(): (GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type))|(GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type), resolve?: (callable(mixed, array<string, mixed>, mixed, GraphQL\Type\Definition\ResolveInfo): mixed)|null, args?: iterable<array{name?: string, type: (callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type))|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type), defaultValue?: mixed, description?: string|null, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\InputValueDefinitionNode|null}|(callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type))|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)>|null, argsMapper?: (callable(array<string, mixed>, GraphQL\Type\Definition\FieldDefinition, GraphQL\Language\AST\FieldNode, mixed): mixed)|null, description?: string|null, visible?: bool|(callable(): bool), deprecationReason?: string|null, ...} will always evaluate to false.
|
|
Run a static analysis with phpstan/phpstan:
tests/Utils/SchemaExtenderTest.php#L1874
Call to static method PHPUnit\Framework\Assert::assertArrayHasKey() with 'customAttr' and array{name: string, type: (callable(): (GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type))|(GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type), resolve?: (callable(mixed, array<string, mixed>, mixed, GraphQL\Type\Definition\ResolveInfo): mixed)|null, args?: iterable<array{name?: string, type: (callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type))|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type), defaultValue?: mixed, description?: string|null, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\InputValueDefinitionNode|null}|(callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type))|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)>|null, argsMapper?: (callable(array<string, mixed>, GraphQL\Type\Definition\FieldDefinition, GraphQL\Language\AST\FieldNode, mixed): mixed)|null, description?: string|null, visible?: bool|(callable(): bool), deprecationReason?: string|null, ...} will always evaluate to false.
|
|
Run a static analysis with phpstan/phpstan:
tests/Utils/SchemaExtenderTest.php#L1870
Parameter #5 $fieldConfigDecorator of static method GraphQL\Utils\SchemaExtender::extend() expects (callable(array{type: callable(): (GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type), resolve?: callable(mixed, array<string, mixed>, mixed, GraphQL\Type\Definition\ResolveInfo): mixed|null, args?: iterable<array{name?: string, type: callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type), defaultValue?: mixed, description?: string|null, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\InputValueDefinitionNode|null}|callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)>|null, argsMapper?: callable(array<string, mixed>, GraphQL\Type\Definition\FieldDefinition, GraphQL\Language\AST\FieldNode, mixed): mixed|null, description?: string|null, visible?: bool|callable(): bool, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\FieldDefinitionNode|null, complexity?: callable(int, array<string, mixed>): int|null}, GraphQL\Language\AST\FieldDefinitionNode, GraphQL\Language\AST\InterfaceTypeDefinitionNode|GraphQL\Language\AST\InterfaceTypeExtensionNode|GraphQL\Language\AST\ObjectTypeDefinitionNode|GraphQL\Language\AST\ObjectTypeExtensionNode): array{type: callable(): (GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type), resolve?: callable(mixed, array<string, mixed>, mixed, GraphQL\Type\Definition\ResolveInfo): mixed|null, args?: iterable<array{name?: string, type: callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type), defaultValue?: mixed, description?: string|null, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\InputValueDefinitionNode|null}|callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)>|null, argsMapper?: callable(array<string, mixed>, GraphQL\Type\Definition\FieldDefinition, GraphQL\Language\AST\FieldNode, mixed): mixed|null, description?: string|null, visible?: bool|callable(): bool, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\FieldDefinitionNode|null, complexity?: callable(int, array<string, mixed>): int|null})|null, Closure(array, GraphQL\Language\AST\FieldDefinitionNode, GraphQL\Language\AST\Node): array given.
|
|
Run a static analysis with phpstan/phpstan:
tests/Utils/SchemaExtenderTest.php#L1868
Call to static method PHPUnit\Framework\Assert::assertArrayHasKey() with 'customAttr' and array{name: string, type: (callable(): (GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type))|(GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type), resolve?: (callable(mixed, array<string, mixed>, mixed, GraphQL\Type\Definition\ResolveInfo): mixed)|null, args?: iterable<array{name?: string, type: (callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type))|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type), defaultValue?: mixed, description?: string|null, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\InputValueDefinitionNode|null}|(callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type))|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)>|null, argsMapper?: (callable(array<string, mixed>, GraphQL\Type\Definition\FieldDefinition, GraphQL\Language\AST\FieldNode, mixed): mixed)|null, description?: string|null, visible?: bool|(callable(): bool), deprecationReason?: string|null, ...} will always evaluate to false.
|
|
Run a static analysis with phpstan/phpstan:
tests/Utils/SchemaExtenderTest.php#L1863
Parameter #4 $fieldConfigDecorator of static method GraphQL\Utils\BuildSchema::build() expects (callable(array{type: callable(): (GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type), resolve?: callable(mixed, array<string, mixed>, mixed, GraphQL\Type\Definition\ResolveInfo): mixed|null, args?: iterable<array{name?: string, type: callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type), defaultValue?: mixed, description?: string|null, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\InputValueDefinitionNode|null}|callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)>|null, argsMapper?: callable(array<string, mixed>, GraphQL\Type\Definition\FieldDefinition, GraphQL\Language\AST\FieldNode, mixed): mixed|null, description?: string|null, visible?: bool|callable(): bool, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\FieldDefinitionNode|null, complexity?: callable(int, array<string, mixed>): int|null}, GraphQL\Language\AST\FieldDefinitionNode, GraphQL\Language\AST\InterfaceTypeDefinitionNode|GraphQL\Language\AST\InterfaceTypeExtensionNode|GraphQL\Language\AST\ObjectTypeDefinitionNode|GraphQL\Language\AST\ObjectTypeExtensionNode): array{type: callable(): (GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\OutputType&GraphQL\Type\Definition\Type), resolve?: callable(mixed, array<string, mixed>, mixed, GraphQL\Type\Definition\ResolveInfo): mixed|null, args?: iterable<array{name?: string, type: callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type), defaultValue?: mixed, description?: string|null, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\InputValueDefinitionNode|null}|callable(): (GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)|(GraphQL\Type\Definition\InputType&GraphQL\Type\Definition\Type)>|null, argsMapper?: callable(array<string, mixed>, GraphQL\Type\Definition\FieldDefinition, GraphQL\Language\AST\FieldNode, mixed): mixed|null, description?: string|null, visible?: bool|callable(): bool, deprecationReason?: string|null, astNode?: GraphQL\Language\AST\FieldDefinitionNode|null, complexity?: callable(int, array<string, mixed>): int|null})|null, Closure(array, GraphQL\Language\AST\FieldDefinitionNode, GraphQL\Language\AST\Node): array given.
|
background
wait
wait-all
cancel
parallel
Loading