From f7be1173e66bc985ed6386cc064a792f7d2cc127 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 18 Sep 2024 10:53:06 +1200 Subject: [PATCH] ENH Don't use deprecated method --- src/Model/BlogPostFeaturedExtension.php | 2 +- src/Widgets/BlogArchiveWidget.php | 2 +- src/Widgets/BlogArchiveWidgetController.php | 2 +- src/Widgets/BlogCategoriesWidget.php | 2 +- src/Widgets/BlogCategoriesWidgetController.php | 2 +- src/Widgets/BlogFeaturedPostsWidget.php | 2 +- src/Widgets/BlogRecentPostsWidget.php | 2 +- src/Widgets/BlogRecentPostsWidgetController.php | 2 +- src/Widgets/BlogTagsCloudWidget.php | 2 +- src/Widgets/BlogTagsCloudWidgetController.php | 2 +- src/Widgets/BlogTagsWidget.php | 2 +- src/Widgets/BlogTagsWidgetController.php | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Model/BlogPostFeaturedExtension.php b/src/Model/BlogPostFeaturedExtension.php index 9d7ba446..ac9a4cef 100644 --- a/src/Model/BlogPostFeaturedExtension.php +++ b/src/Model/BlogPostFeaturedExtension.php @@ -17,7 +17,7 @@ class BlogPostFeaturedExtension extends DataExtension { public function __construct() { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogArchiveWidget.php b/src/Widgets/BlogArchiveWidget.php index f46a814e..89dc01ac 100644 --- a/src/Widgets/BlogArchiveWidget.php +++ b/src/Widgets/BlogArchiveWidget.php @@ -76,7 +76,7 @@ class BlogArchiveWidget extends Widget public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = []) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogArchiveWidgetController.php b/src/Widgets/BlogArchiveWidgetController.php index aa00c5d5..558ebacc 100644 --- a/src/Widgets/BlogArchiveWidgetController.php +++ b/src/Widgets/BlogArchiveWidgetController.php @@ -16,7 +16,7 @@ class BlogArchiveWidgetController extends WidgetController { public function __construct($widget = null) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogCategoriesWidget.php b/src/Widgets/BlogCategoriesWidget.php index 4d3d7952..5965590f 100644 --- a/src/Widgets/BlogCategoriesWidget.php +++ b/src/Widgets/BlogCategoriesWidget.php @@ -61,7 +61,7 @@ class BlogCategoriesWidget extends Widget public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = []) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogCategoriesWidgetController.php b/src/Widgets/BlogCategoriesWidgetController.php index 755e0b1e..19775c37 100644 --- a/src/Widgets/BlogCategoriesWidgetController.php +++ b/src/Widgets/BlogCategoriesWidgetController.php @@ -16,7 +16,7 @@ class BlogCategoriesWidgetController extends WidgetController { public function __construct($widget = null) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogFeaturedPostsWidget.php b/src/Widgets/BlogFeaturedPostsWidget.php index 4265813a..4c14affe 100644 --- a/src/Widgets/BlogFeaturedPostsWidget.php +++ b/src/Widgets/BlogFeaturedPostsWidget.php @@ -60,7 +60,7 @@ class BlogFeaturedPostsWidget extends Widget public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = []) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogRecentPostsWidget.php b/src/Widgets/BlogRecentPostsWidget.php index b5d37290..164ff546 100644 --- a/src/Widgets/BlogRecentPostsWidget.php +++ b/src/Widgets/BlogRecentPostsWidget.php @@ -60,7 +60,7 @@ class BlogRecentPostsWidget extends Widget public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = []) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogRecentPostsWidgetController.php b/src/Widgets/BlogRecentPostsWidgetController.php index 86410d1e..51795215 100644 --- a/src/Widgets/BlogRecentPostsWidgetController.php +++ b/src/Widgets/BlogRecentPostsWidgetController.php @@ -16,7 +16,7 @@ class BlogRecentPostsWidgetController extends WidgetController { public function __construct($widget = null) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogTagsCloudWidget.php b/src/Widgets/BlogTagsCloudWidget.php index c39a68c0..c125e051 100644 --- a/src/Widgets/BlogTagsCloudWidget.php +++ b/src/Widgets/BlogTagsCloudWidget.php @@ -56,7 +56,7 @@ class BlogTagsCloudWidget extends Widget public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = []) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogTagsCloudWidgetController.php b/src/Widgets/BlogTagsCloudWidgetController.php index 3621a629..3028954b 100644 --- a/src/Widgets/BlogTagsCloudWidgetController.php +++ b/src/Widgets/BlogTagsCloudWidgetController.php @@ -16,7 +16,7 @@ class BlogTagsCloudWidgetController extends WidgetController { public function __construct($widget = null) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogTagsWidget.php b/src/Widgets/BlogTagsWidget.php index b07ef1ae..54620fe8 100644 --- a/src/Widgets/BlogTagsWidget.php +++ b/src/Widgets/BlogTagsWidget.php @@ -61,7 +61,7 @@ class BlogTagsWidget extends Widget public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = []) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it', diff --git a/src/Widgets/BlogTagsWidgetController.php b/src/Widgets/BlogTagsWidgetController.php index 5a89bd1a..706ed940 100644 --- a/src/Widgets/BlogTagsWidgetController.php +++ b/src/Widgets/BlogTagsWidgetController.php @@ -16,7 +16,7 @@ class BlogTagsWidgetController extends WidgetController { public function __construct($widget = null) { - Deprecation::withNoReplacement(function () { + Deprecation::withSuppressedWarning(function () { Deprecation::notice( '4.3.0', 'Will be removed without equivalent functionality to replace it',