Skip to content

Commit 4d7302c

Browse files
committed
Correct error message about resolve specified on input fields
1 parent 2142666 commit 4d7302c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Type/Definition/InputObjectField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function assertValid(Type $parentType)
100100
Utils::invariant(
101101
empty($this->config['resolve']),
102102
sprintf(
103-
'%s.%s field type has a resolve property, but Input Types cannot define resolvers.',
103+
'%s.%s field has a resolve property, but Input Types cannot define resolvers.',
104104
$parentType->name,
105105
$this->name
106106
)

tests/Type/DefinitionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ public function testRejectsAnInputObjectTypeWithResolvers() : void
14941494
]);
14951495
$this->expectException(InvariantViolation::class);
14961496
$this->expectExceptionMessage(
1497-
'SomeInputObject.f field type has a resolve property, ' .
1497+
'SomeInputObject.f field has a resolve property, ' .
14981498
'but Input Types cannot define resolvers.'
14991499
);
15001500
$inputObjType->assertValid();
@@ -1518,7 +1518,7 @@ public function testRejectsAnInputObjectTypeWithResolverConstant() : void
15181518
]);
15191519
$this->expectException(InvariantViolation::class);
15201520
$this->expectExceptionMessage(
1521-
'SomeInputObject.f field type has a resolve property, ' .
1521+
'SomeInputObject.f field has a resolve property, ' .
15221522
'but Input Types cannot define resolvers.'
15231523
);
15241524
$inputObjType->assertValid();

0 commit comments

Comments
 (0)