Skip to content

Commit

Permalink
Merge branch '5' into 6
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 1, 2024
2 parents 89e8b36 + 4d78f78 commit f4d62b4
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 @@ -1245,6 +1245,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 f4d62b4

Please sign in to comment.