phpstan: ignore Return type of call to method PHPUnit\Framework\TestCase::createMock() contains unresolvable type.

This commit is contained in:
2021-06-17 16:28:24 +03:00
parent 55480ab2c0
commit a08bccac45

View File

@ -55,6 +55,7 @@ final class MessageTest extends TestCase
*/ */
public function messages(): Generator public function messages(): Generator
{ {
/** @phpstan-ignore-next-line */
$consumer = $this->createMock(Consumer::class); $consumer = $this->createMock(Consumer::class);
$consumer->method('fin')->willReturn(new Success()); $consumer->method('fin')->willReturn(new Success());
$consumer->method('touch')->willReturn(new Success()); $consumer->method('touch')->willReturn(new Success());