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 Deprecate getCMSValidator() method. #11539

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Jan 8, 2025

The use of this method was already deprecated, but no deprecation notice was prompting developers to stop using it.
No changelog entry because as mentioned this was already deprecated.

Issue

'5.4.0',
'The getCMSValidator() method is deprecated and won\'t be supported in a future major release.'
. ' Override getCMSCompositeValidator() instead.',
Deprecation::SCOPE_GLOBAL
Copy link
Member Author

Choose a reason for hiding this comment

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

Global scope because it's the only scope that won't include its own messaging. E.g. if we used method scope, the deprecation notice would say DataObject::getCMSCompositeValidator() is deprecated which is obviously not correct.

@emteknetnz emteknetnz merged commit 99caf2d into silverstripe:5 Jan 9, 2025
18 checks passed
@emteknetnz emteknetnz deleted the pulls/5/getcmsvalidator-deprecation branch January 9, 2025 21:48
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