I am getting this error: Compile Error: Declaration of Doctrine\ODM\MongoDB\DocumentManager::getRepository($className) must be compatible with Doctrine\Persistence\ManagerRegistry::getRepository(string $persistentObject, ?string $persistentManagerName = null) Has anyone ever seen this error? Screenshot of the error
I tried to manually modify the class to make it match but it didn't work because it kept giving the same error.
Problem solved: Mistaken implementation in the DocumentManager