Skip to content

Commit

Permalink
Merge pull request #11472 from creative-commoners/pulls/5/depr-validate
Browse files Browse the repository at this point in the history
API Deprecation notice for FormField::validate()
  • Loading branch information
GuySartorelli authored Nov 26, 2024
2 parents 17fd6b0 + 34a50fe commit 4d78f78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Forms/FormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,11 @@ protected function extendValidationResult(bool $result, Validator $validator): b
*/
public function validate($validator)
{
Deprecation::noticeWithNoReplacment(
'5.4.0',
'This method will take zero arguments and return a ValidationResult'
. ' object instead of a boolean in CMS 6.0.0'
);
return $this->extendValidationResult(true, $validator);
}

Expand Down

0 comments on commit 4d78f78

Please sign in to comment.