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...
25
$this->userRepositoryCollection = new UserRepositoryCollection([$this->userRepository]);
26
}
27
28
/**
29
* Test if DeleteUserHandler gets handled.
30
*/
31
public function testUpdateUserGetsHandled()
32
{
33
$handler = new DeleteUserHandler($this->userRepositoryCollection);
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..