Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Rename Deprecation::withNoReplacement #11390

Merged

Conversation

GuySartorelli
Copy link
Member

This was referenced Sep 17, 2024
Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

withSuppressedWarning() should be withSurpressedNotice() as we're surpressing Deprecation::notice()

This applies to all PRs linked in the issue

@GuySartorelli
Copy link
Member Author

Arguably the notice method is poorly named but to avoid ping pong and unnecessary additional effort I'll update the new method name.

@GuySartorelli GuySartorelli changed the title API Rename Deprecation::withNoReplacement to Deprecation::withSuppressedWarning API Rename Deprecation::withNoReplacement Sep 18, 2024
private static bool $insideWithNoReplacement = false;
private static bool $insideWarningSuppression = false;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't mention it but I assume you want these renamed too, so I'll do that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@emteknetnz emteknetnz merged commit 6287b6e into silverstripe:5 Sep 18, 2024
14 checks passed
@emteknetnz emteknetnz deleted the pulls/5/suppress-deprecation branch September 18, 2024 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants