|
4 | 4 |
|
5 | 5 | namespace Overblog\GraphQLBundle\Tests\Transformer; |
6 | 6 |
|
7 | | -use Exception; |
8 | 7 | use Generator; |
9 | 8 | use GraphQL\Type\Definition\EnumType; |
10 | 9 | use GraphQL\Type\Definition\InputObjectType; |
@@ -212,7 +211,7 @@ public function testInputObjectWithWrappingType(Type $type): void |
212 | 211 |
|
213 | 212 | $inputValue = $transformer->getInstanceAndValidate($type->toString(), $data, $info, 'input1'); |
214 | 213 |
|
215 | | - /** @var InputType1 $inputValue */ |
| 214 | + /* @var InputType1 $inputValue */ |
216 | 215 | $this->assertInstanceOf(InputType1::class, $inputValue); |
217 | 216 | $this->assertEquals($inputValue->field1, $data['field1']); |
218 | 217 | $this->assertEquals($inputValue->field2, $data['field2']); |
@@ -247,9 +246,9 @@ public function testInputObjectWithWrappingTypeList(Type $type): void |
247 | 246 | $data = ['field1' => 'hello', 'field2' => 12, 'field3' => true]; |
248 | 247 |
|
249 | 248 | $inputValue = $transformer->getInstanceAndValidate($type->toString(), [$data], $info, 'input1'); |
250 | | - $inputValue = reset($inputValue); |
| 249 | + $inputValue = \reset($inputValue); |
251 | 250 |
|
252 | | - /** @var InputType1 $inputValue */ |
| 251 | + /* @var InputType1 $inputValue */ |
253 | 252 | $this->assertInstanceOf(InputType1::class, $inputValue); |
254 | 253 | $this->assertEquals($inputValue->field1, $data['field1']); |
255 | 254 | $this->assertEquals($inputValue->field2, $data['field2']); |
|
0 commit comments