It seems like $doctrine of type object<Doctrine\Persistence\ManagerRegistry> is incompatible with the declared type object<Sonata\NotificationBundle\Event\Registry> of property $doctrine.
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...
35
}
36
37
/**
38
* {@inheritdoc}
39
*/
40
public function iterate(IterateEvent $event): void
41
{
42
foreach ($this->doctrine->getManagers() as $name => $manager) {
43
if (!$manager->isOpen()) {
44
throw new \RuntimeException(sprintf('The doctrine manager: %s is closed', $name));
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..