]> BookStack Code Mirror - bookstack/blobdiff - app/Activity/Notifications/Handlers/PageUpdateNotificationHandler.php
phpstan: Address a range of level 2 issues
[bookstack] / app / Activity / Notifications / Handlers / PageUpdateNotificationHandler.php
index 744aba18f631782e38b739874a3f8e5e44b3c34b..20dc0fc4d8e42cf36ef4a6eed1c423cf5c45b12b 100644 (file)
@@ -20,7 +20,8 @@ class PageUpdateNotificationHandler extends BaseNotificationHandler
             throw new \InvalidArgumentException("Detail for page update notifications must be a page");
         }
 
-        // Get last update from activity
+        // Get the last update from activity
+        /** @var ?Activity $lastUpdate */
         $lastUpdate = $detail->activity()
             ->where('type', '=', ActivityType::PAGE_UPDATE)
             ->where('id', '!=', $activity->id)