diff --git a/lib/Command/AccountDelete.php b/lib/Command/AccountDelete.php index 0877edc2..aaad6d9e 100644 --- a/lib/Command/AccountDelete.php +++ b/lib/Command/AccountDelete.php @@ -63,7 +63,7 @@ class AccountDelete extends Base { $this->configService = $configService; } - protected function configure() { + protected function configure(): void { parent::configure(); $this->setName('social:account:delete') ->addArgument('account', InputArgument::REQUIRED, 'Social Local Account') diff --git a/lib/Db/ActionsRequest.php b/lib/Db/ActionsRequest.php index 8fd6130b..4795c76d 100644 --- a/lib/Db/ActionsRequest.php +++ b/lib/Db/ActionsRequest.php @@ -157,7 +157,7 @@ class ActionsRequest extends ActionsRequestBuilder { $qb = $this->getActionsDeleteSql(); $qb->limitToDBField('actor_id_prim', $qb->prim($actorId)); - $qb->execute(); + $qb->executeStatement(); } @@ -168,6 +168,6 @@ class ActionsRequest extends ActionsRequestBuilder { $qb->limitToDBField('actor_id_prim', $qb->prim($actorId)); - $qb->execute(); + $qb->executeStatement(); } } diff --git a/lib/Db/CacheDocumentsRequest.php b/lib/Db/CacheDocumentsRequest.php index c435f9d7..88fb20f8 100644 --- a/lib/Db/CacheDocumentsRequest.php +++ b/lib/Db/CacheDocumentsRequest.php @@ -242,7 +242,7 @@ class CacheDocumentsRequest extends CacheDocumentsRequestBuilder { $qb->execute(); } - public function deleteByParent(string $parentId) { + public function deleteByParent(string $parentId): void { $qb = $this->getCacheDocumentsDeleteSql(); $qb->limitToDBField('parent_id_prim', $qb->prim($parentId)); @@ -257,6 +257,6 @@ class CacheDocumentsRequest extends CacheDocumentsRequestBuilder { $qb->limitToDBField('parent_id_prim', $qb->prim($actorId)); - $qb->execute(); + $qb->executeStatement(); } } diff --git a/lib/Db/FollowsRequest.php b/lib/Db/FollowsRequest.php index 4e6ccd00..43a7643e 100644 --- a/lib/Db/FollowsRequest.php +++ b/lib/Db/FollowsRequest.php @@ -307,7 +307,7 @@ class FollowsRequest extends FollowsRequestBuilder { * @param string $actorId * @param Person $new */ - public function moveAccountFollowers(string $actorId, Person $new) { + public function moveAccountFollowers(string $actorId, Person $new): void { $qb = $this->getFollowsUpdateSql(); $qb->set('object_id', $qb->createNamedParameter($new->getId())) ->set('object_id_prim', $qb->createNamedParameter($qb->prim($new->getId()))) @@ -324,7 +324,7 @@ class FollowsRequest extends FollowsRequestBuilder { * @param string $actorId * @param Person $new */ - public function moveAccountFollowing(string $actorId, Person $new) { + public function moveAccountFollowing(string $actorId, Person $new): void { $qb = $this->getFollowsUpdateSql(); $qb->set('actor_id', $qb->createNamedParameter($new->getId())) ->set('actor_id_prim', $qb->createNamedParameter($qb->prim($new->getId()))); diff --git a/lib/Db/RequestQueueRequest.php b/lib/Db/RequestQueueRequest.php index 1a637fb6..7ee48257 100644 --- a/lib/Db/RequestQueueRequest.php +++ b/lib/Db/RequestQueueRequest.php @@ -200,7 +200,7 @@ class RequestQueueRequest extends RequestQueueRequestBuilder { $qb->executeStatement(); } - public function deleteByAuthor(string $actorId) { + public function deleteByAuthor(string $actorId): void { $qb = $this->getRequestQueueDeleteSql(); $qb->limitToDBField('author_prim', $qb->prim($actorId)); diff --git a/lib/Db/StreamRequest.php b/lib/Db/StreamRequest.php index 6bf43db8..e143fdd7 100644 --- a/lib/Db/StreamRequest.php +++ b/lib/Db/StreamRequest.php @@ -798,7 +798,7 @@ class StreamRequest extends StreamRequestBuilder { ->set('attributed_to_prim', $qb->createNamedParameter($qb->prim($newId))); $qb->limitToAttributedTo($actorId, true); - $qb->execute(); + $qb->executeStatement(); }