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 renamed validators #11490

Merged

Conversation

emteknetnz
Copy link
Member

Issue #10908

@emteknetnz emteknetnz mentioned this pull request Dec 3, 2024
8 tasks
@emteknetnz emteknetnz marked this pull request as ready for review December 3, 2024 05:27
@emteknetnz emteknetnz marked this pull request as draft December 3, 2024 05:55
@emteknetnz emteknetnz marked this pull request as ready for review December 4, 2024 22:06
src/Forms/FieldsValidator.php Outdated Show resolved Hide resolved
src/Forms/RequiredFields.php Outdated Show resolved Hide resolved
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Just this one small change (sorry, was my fault. I gave the wrong capitalisation in my recommended change)

Comment on lines 10 to 18
* @deprecated 5.4.0 Will be replaced with functionality inside Silverstripe\Forms\Form::validate()
*/
class FieldsValidator extends Validator
{
public function __construct()
{
Deprecation::noticeWithNoReplacment(
'5.4.0',
'Will be replaced with functionality inside Silverstripe\Forms\Form::validate()',
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* @deprecated 5.4.0 Will be replaced with functionality inside Silverstripe\Forms\Form::validate()
*/
class FieldsValidator extends Validator
{
public function __construct()
{
Deprecation::noticeWithNoReplacment(
'5.4.0',
'Will be replaced with functionality inside Silverstripe\Forms\Form::validate()',
* @deprecated 5.4.0 Will be replaced with functionality inside SilverStripe\Forms\Form::validate()
*/
class FieldsValidator extends Validator
{
public function __construct()
{
Deprecation::noticeWithNoReplacment(
'5.4.0',
'Will be replaced with functionality inside SilverStripe\Forms\Form::validate()',

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM, CI failures aren't related.

@GuySartorelli GuySartorelli merged commit cb351be into silverstripe:5 Dec 9, 2024
14 of 17 checks passed
@GuySartorelli GuySartorelli deleted the pulls/5/depr-valid branch December 9, 2024 02:23
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