It seems like $this->createRepository() of type object<Doctrine\Common\P...tence\ObjectRepository> is incompatible with the declared type object<XApi\Repository\D...pedStatementRepository> of property $repository.
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...
38
39
parent::setUp();
40
}
41
42
protected function createStatementRepository()
43
{
44
return new StatementRepository($this->repository);
45
}
46
47
protected function cleanDatabase()
48
{
49
foreach ($this->repository->findMappedStatements(array()) as $statement) {
50
$this->objectManager->remove($statement);
51
}
52
53
$this->objectManager->flush();
54
}
55
56
/**
57
* @return ObjectManager
58
*/
59
abstract protected function createObjectManager();
60
61
/**
62
* @return string
63
*/
64
abstract protected function getStatementClassName();
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..