Skip to content

Commit a60b835

Browse files
authored
Merge pull request ZF-Commons#103 from roelvanduijnhoven/patch-2
Make sure that repo works under PHP 7.2
2 parents 9e8955c + 6ca0c2e commit a60b835

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ZfcUserDoctrineORM/Mapper/User.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
namespace ZfcUserDoctrineORM\Mapper;
44

55
use Doctrine\ORM\EntityManagerInterface;
6+
use ZfcUser\Entity\UserInterface;
67
use ZfcUser\Mapper\User as ZfcUserMapper;
78
use ZfcUserDoctrineORM\Options\ModuleOptions;
8-
use Zend\Stdlib\Hydrator\HydratorInterface;
9+
use Zend\Hydrator\HydratorInterface;
910

1011
class User extends ZfcUserMapper
1112
{
@@ -46,12 +47,12 @@ public function findById($id)
4647
return $er->find($id);
4748
}
4849

49-
public function insert($entity, $tableName = null, HydratorInterface $hydrator = null)
50+
public function insert(UserInterface $entity, $tableName = null, HydratorInterface $hydrator = null)
5051
{
5152
return $this->persist($entity);
5253
}
5354

54-
public function update($entity, $where = null, $tableName = null, HydratorInterface $hydrator = null)
55+
public function update(UserInterface $entity, $where = null, $tableName = null, HydratorInterface $hydrator = null)
5556
{
5657
return $this->persist($entity);
5758
}

0 commit comments

Comments
 (0)