It seems like new \SumoCoders\Framewor...nMemoryUserRepository() of type object<SumoCoders\Framew...InMemoryUserRepository> is incompatible with the declared type object<SumoCoders\Framew...Command\UserRepository> of property $userRepository.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
19
}
20
21
/**
22
* Test if CreateUserHandler gets handled.
23
*/
24
public function testCreateUserGetsHandled()
25
{
26
$handler = new CreateUserHandler($this->userRepository);
27
28
$user = new CreateUser('sumo', 'randomPassword', 'sumocoders');
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..