Skip to content

Commit

Permalink
ENH Don't use deprecated method (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Sep 19, 2024
1 parent 67be150 commit 0da034c
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Model/BlogPostFeaturedExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BlogPostFeaturedExtension extends DataExtension
{
public function __construct()
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogArchiveWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class BlogArchiveWidget extends Widget

public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogArchiveWidgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BlogArchiveWidgetController extends WidgetController
{
public function __construct($widget = null)
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogCategoriesWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class BlogCategoriesWidget extends Widget

public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogCategoriesWidgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BlogCategoriesWidgetController extends WidgetController
{
public function __construct($widget = null)
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogFeaturedPostsWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class BlogFeaturedPostsWidget extends Widget

public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogRecentPostsWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class BlogRecentPostsWidget extends Widget

public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogRecentPostsWidgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BlogRecentPostsWidgetController extends WidgetController
{
public function __construct($widget = null)
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogTagsCloudWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BlogTagsCloudWidget extends Widget

public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogTagsCloudWidgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BlogTagsCloudWidgetController extends WidgetController
{
public function __construct($widget = null)
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogTagsWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class BlogTagsWidget extends Widget

public function __construct($record = [], $creationType = DataObject::CREATE_OBJECT, $queryParams = [])
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/BlogTagsWidgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BlogTagsWidgetController extends WidgetController
{
public function __construct($widget = null)
{
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'4.3.0',
'Will be removed without equivalent functionality to replace it',
Expand Down

0 comments on commit 0da034c

Please sign in to comment.