From 34a50fe40167a7440608c579051e51c6ed8a3cd0 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 25 Nov 2024 14:49:08 +1300 Subject: [PATCH] API Deprecation notice for FormField::validate() --- src/Forms/FormField.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Forms/FormField.php b/src/Forms/FormField.php index 209318636dd..00eef25510c 100644 --- a/src/Forms/FormField.php +++ b/src/Forms/FormField.php @@ -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); }