From 9f6b6f9d8ac7701701f0f4c8f24e80856b06d915 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 16 Nov 2022 12:00:17 +1300 Subject: [PATCH] API Update deprecations --- src/VersionFeed.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/VersionFeed.php b/src/VersionFeed.php index d144c28..9f8117d 100644 --- a/src/VersionFeed.php +++ b/src/VersionFeed.php @@ -2,6 +2,7 @@ namespace SilverStripe\VersionFeed; +use SilverStripe\Dev\Deprecation; use SilverStripe\CMS\Model\SiteTreeExtension; use SilverStripe\Core\Config\Config; use SilverStripe\Forms\CheckboxField; @@ -171,7 +172,7 @@ class VersionFeed extends SiteTreeExtension /** * Compile a list of changes to the current page, excluding non-published and explicitly secured versions. * - * @deprecated 2.0.0 Use VersionFeed::getDiffList instead + * @deprecated 2.0.0 Use VersionFeed::getDiffList() instead * * @param int $highestVersion Top version number to consider. * @param boolean $fullHistory Set to true to get the full change history, set to false for a single diff. @@ -181,6 +182,7 @@ class VersionFeed extends SiteTreeExtension */ public function getDiffedChanges($highestVersion = null, $fullHistory = true, $limit = 100) { + Deprecation::notice('2.0.0', 'Use VersionFeed::getDiffList() instead'); return $this->getDiffList( $highestVersion, $fullHistory ? $limit : 1