From 73d0f4995fb2b1de10e3a5e7b4c0eca86fc7b783 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 11 Jan 2024 16:35:59 +1300 Subject: [PATCH] ENH Add generic types --- src/Extension/Engine/SiteTreePublishingEngine.php | 2 ++ src/Extension/Publishable/PublishableSiteTree.php | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Extension/Engine/SiteTreePublishingEngine.php b/src/Extension/Engine/SiteTreePublishingEngine.php index 0b5891c9..7d792800 100644 --- a/src/Extension/Engine/SiteTreePublishingEngine.php +++ b/src/Extension/Engine/SiteTreePublishingEngine.php @@ -25,6 +25,8 @@ * * action - name of the executed action: publish or unpublish * * @see PublishableSiteTree + * + * @extends DataExtension */ class SiteTreePublishingEngine extends SiteTreeExtension implements Resettable { diff --git a/src/Extension/Publishable/PublishableSiteTree.php b/src/Extension/Publishable/PublishableSiteTree.php index 4b1956e3..ba44dcf7 100644 --- a/src/Extension/Publishable/PublishableSiteTree.php +++ b/src/Extension/Publishable/PublishableSiteTree.php @@ -19,6 +19,8 @@ * an extension via the config system ordering (inject your extension "before" the PublishableSiteTree). * * @see SiteTreePublishingEngine + * + * @extends DataExtension */ class PublishableSiteTree extends DataExtension implements StaticallyPublishable, StaticPublishingTrigger { @@ -36,7 +38,7 @@ public function getMyVirtualPages() } /** - * @return array|SS_List + * @return iterable */ public function objectsToUpdate($context) { @@ -92,7 +94,7 @@ public function objectsToUpdate($context) /** * This method controls which caches will be purged * - * @return array|SS_List + * @return iterable */ public function objectsToDelete($context) {