It seems like new \Doctrine\Common\Collections\ArrayCollection() of type object<Doctrine\Common\C...ctions\ArrayCollection> is incompatible with the declared type array of property $userRepositories.
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...
23
foreach ($userRepositories as $repository) {
24
$this->registerUserRepository($repository);
25
}
26
}
27
28
/**
29
* Registers the UserRepository to the UserRepositoryCollection.
30
*
31
* @param UserRepository $userRepository
32
*/
33
public function registerUserRepository(UserRepository $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..