Test Double code generator does not handle "void" return type declaration on __clone() methods #4938
Labels
feature/test-doubles
Test Stubs and Mock Objects
type/change-in-php-requires-adaptation
A change in PHP requires a change so that existing PHPUnit functionality continues to work
Summary
phpunit fails with the following error:
Current behavior
phpunit tests is unable to start.
How to reproduce
public function __clone(): void
Expected behavior
If I specify the return type of UnmockedCloneMethod::__clone() method as this, the problem is fixed:
composer info | sort
The text was updated successfully, but these errors were encountered: