diff options
Diffstat (limited to 'lib/Db/CacheActorsRequest.php')
-rw-r--r-- | lib/Db/CacheActorsRequest.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Db/CacheActorsRequest.php b/lib/Db/CacheActorsRequest.php index 82a2f5de..8ea1438c 100644 --- a/lib/Db/CacheActorsRequest.php +++ b/lib/Db/CacheActorsRequest.php @@ -114,8 +114,10 @@ class CacheActorsRequest extends CacheActorsRequestBuilder { * insert cache about an Actor in database. * * @param Person $actor + * + * @return int */ - public function update(Person $actor) { + public function update(Person $actor): int { if ($actor->getCreation() > 0) { $dTime = new DateTime(); @@ -155,7 +157,8 @@ class CacheActorsRequest extends CacheActorsRequestBuilder { $qb->set('icon_id', $qb->createNamedParameter($iconId)); $this->limitToIdString($qb, $actor->getId()); - $qb->execute(); + + return $qb->execute(); } |