@@ -865,7 +865,7 @@ public function updateCalendar($calendarId, PropPatch $propPatch) {
865865 * @return void
866866 */
867867 public function deleteCalendar ($ calendarId , bool $ forceDeletePermanently = false ) {
868- $ this ->atomic (function () use ($ calendarId , $ forceDeletePermanently ) {
868+ $ this ->atomic (function () use ($ calendarId , $ forceDeletePermanently ): void {
869869 // The calendar is deleted right away if this is either enforced by the caller
870870 // or the special contacts birthday calendar or when the preference of an empty
871871 // retention (0 seconds) is set, which signals a disabled trashbin.
@@ -926,7 +926,7 @@ public function deleteCalendar($calendarId, bool $forceDeletePermanently = false
926926 }
927927
928928 public function restoreCalendar (int $ id ): void {
929- $ this ->atomic (function () use ($ id ) {
929+ $ this ->atomic (function () use ($ id ): void {
930930 $ qb = $ this ->db ->getQueryBuilder ();
931931 $ update = $ qb ->update ('calendars ' )
932932 ->set ('deleted_at ' , $ qb ->createNamedParameter (null ))
@@ -1471,7 +1471,7 @@ public function setClassification($calendarObjectId, $classification) {
14711471 */
14721472 public function deleteCalendarObject ($ calendarId , $ objectUri , $ calendarType = self ::CALENDAR_TYPE_CALENDAR , bool $ forceDeletePermanently = false ) {
14731473 $ this ->cachedObjects = [];
1474- $ this ->atomic (function () use ($ calendarId , $ objectUri , $ calendarType , $ forceDeletePermanently ) {
1474+ $ this ->atomic (function () use ($ calendarId , $ objectUri , $ calendarType , $ forceDeletePermanently ): void {
14751475 $ data = $ this ->getCalendarObject ($ calendarId , $ objectUri , $ calendarType );
14761476
14771477 if ($ data === null ) {
@@ -1553,7 +1553,7 @@ public function deleteCalendarObject($calendarId, $objectUri, $calendarType = se
15531553 */
15541554 public function restoreCalendarObject (array $ objectData ): void {
15551555 $ this ->cachedObjects = [];
1556- $ this ->atomic (function () use ($ objectData ) {
1556+ $ this ->atomic (function () use ($ objectData ): void {
15571557 $ id = (int )$ objectData ['id ' ];
15581558 $ restoreUri = str_replace ('-deleted.ics ' , '.ics ' , $ objectData ['uri ' ]);
15591559 $ targetObject = $ this ->getCalendarObject (
@@ -2697,7 +2697,7 @@ public function updateSubscription($subscriptionId, PropPatch $propPatch) {
26972697 * @return void
26982698 */
26992699 public function deleteSubscription ($ subscriptionId ) {
2700- $ this ->atomic (function () use ($ subscriptionId ) {
2700+ $ this ->atomic (function () use ($ subscriptionId ): void {
27012701 $ subscriptionRow = $ this ->getSubscriptionById ($ subscriptionId );
27022702
27032703 $ query = $ this ->db ->getQueryBuilder ();
@@ -2889,7 +2889,7 @@ protected function addChanges(int $calendarId, array $objectUris, int $operation
28892889 $ this ->cachedObjects = [];
28902890 $ table = $ calendarType === self ::CALENDAR_TYPE_CALENDAR ? 'calendars ' : 'calendarsubscriptions ' ;
28912891
2892- $ this ->atomic (function () use ($ calendarId , $ objectUris , $ operation , $ calendarType , $ table ) {
2892+ $ this ->atomic (function () use ($ calendarId , $ objectUris , $ operation , $ calendarType , $ table ): void {
28932893 $ query = $ this ->db ->getQueryBuilder ();
28942894 $ query ->select ('synctoken ' )
28952895 ->from ($ table )
@@ -2924,7 +2924,7 @@ protected function addChanges(int $calendarId, array $objectUris, int $operation
29242924 public function restoreChanges (int $ calendarId , int $ calendarType = self ::CALENDAR_TYPE_CALENDAR ): void {
29252925 $ this ->cachedObjects = [];
29262926
2927- $ this ->atomic (function () use ($ calendarId , $ calendarType ) {
2927+ $ this ->atomic (function () use ($ calendarId , $ calendarType ): void {
29282928 $ qbAdded = $ this ->db ->getQueryBuilder ();
29292929 $ qbAdded ->select ('uri ' )
29302930 ->from ('calendarobjects ' )
@@ -3090,7 +3090,7 @@ private function readBlob($cardData) {
30903090 * @param list<string> $remove
30913091 */
30923092 public function updateShares (IShareable $ shareable , array $ add , array $ remove ): void {
3093- $ this ->atomic (function () use ($ shareable , $ add , $ remove ) {
3093+ $ this ->atomic (function () use ($ shareable , $ add , $ remove ): void {
30943094 $ calendarId = $ shareable ->getResourceId ();
30953095 $ calendarRow = $ this ->getCalendarById ($ calendarId );
30963096 if ($ calendarRow === null ) {
@@ -3188,7 +3188,7 @@ public function applyShareAcl(int $resourceId, array $acl): array {
31883188 */
31893189 public function updateProperties ($ calendarId , $ objectUri , $ calendarData , $ calendarType = self ::CALENDAR_TYPE_CALENDAR ) {
31903190 $ this ->cachedObjects = [];
3191- $ this ->atomic (function () use ($ calendarId , $ objectUri , $ calendarData , $ calendarType ) {
3191+ $ this ->atomic (function () use ($ calendarId , $ objectUri , $ calendarData , $ calendarType ): void {
31923192 $ objectId = $ this ->getCalendarObjectId ($ calendarId , $ objectUri , $ calendarType );
31933193
31943194 try {
@@ -3260,7 +3260,7 @@ public function updateProperties($calendarId, $objectUri, $calendarData, $calend
32603260 * deletes all birthday calendars
32613261 */
32623262 public function deleteAllBirthdayCalendars () {
3263- $ this ->atomic (function () {
3263+ $ this ->atomic (function (): void {
32643264 $ query = $ this ->db ->getQueryBuilder ();
32653265 $ result = $ query ->select (['id ' ])->from ('calendars ' )
32663266 ->where ($ query ->expr ()->eq ('uri ' , $ query ->createNamedParameter (BirthdayService::BIRTHDAY_CALENDAR_URI )))
@@ -3280,7 +3280,7 @@ public function deleteAllBirthdayCalendars() {
32803280 * @param $subscriptionId
32813281 */
32823282 public function purgeAllCachedEventsForSubscription ($ subscriptionId ) {
3283- $ this ->atomic (function () use ($ subscriptionId ) {
3283+ $ this ->atomic (function () use ($ subscriptionId ): void {
32843284 $ query = $ this ->db ->getQueryBuilder ();
32853285 $ query ->select ('uri ' )
32863286 ->from ('calendarobjects ' )
@@ -3326,7 +3326,7 @@ public function purgeCachedEventsForSubscription(int $subscriptionId, array $cal
33263326 return ;
33273327 }
33283328
3329- $ this ->atomic (function () use ($ subscriptionId , $ calendarObjectIds , $ calendarObjectUris ) {
3329+ $ this ->atomic (function () use ($ subscriptionId , $ calendarObjectIds , $ calendarObjectUris ): void {
33303330 foreach (array_chunk ($ calendarObjectIds , 1000 ) as $ chunk ) {
33313331 $ query = $ this ->db ->getQueryBuilder ();
33323332 $ query ->delete ($ this ->dbObjectPropertiesTable )
0 commit comments