The expression return $mock returns the type PHPUnit\Framework\MockObject\MockObject which is incompatible with the type-hinted return Opulence\Orm\DataMappers\IDataMapper.
Loading history...
41
}
42
43
/**
44
* @return IUnitOfWork|MockObject
45
*/
46
protected function createUnitOfWorkMock(): IUnitOfWork
The expression return $mock returns the type PHPUnit\Framework\MockObject\MockObject which is incompatible with the type-hinted return Opulence\Orm\IUnitOfWork.