Skip to content

Commit b06edb2

Browse files
author
MateuszKolankowski
committed
Suppress unused result warnings in transformation tests
1 parent c0a1da7 commit b06edb2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/lib/Form/DataTransformer/ContentInfoTransformerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public function testTransformWithInvalidInput($value): void
4949
$this->expectException(TransformationFailedException::class);
5050
$this->expectExceptionMessage('Expected a ' . ContentInfo::class . ' object.');
5151

52-
$result = $this->contentInfoTransformer->transform($value);
52+
/** @phpstan-ignore method.resultUnused */
53+
$this->contentInfoTransformer->transform($value);
5354
}
5455

5556
/**

tests/lib/Form/DataTransformer/LanguageTransformerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public function testTransformWithInvalidInput($value): void
5252
$this->expectException(TransformationFailedException::class);
5353
$this->expectExceptionMessage('Expected a ' . Language::class . ' object.');
5454

55-
$result = $transformer->transform($value);
55+
/** @phpstan-ignore method.resultUnused */
56+
$transformer->transform($value);
5657
}
5758

5859
public function testReverseTransformWithLanguageCode(): void

0 commit comments

Comments
 (0)