Skip to content

Commit

Permalink
API Deprecate getCMSValidator() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 8, 2025
1 parent b481546 commit 7e31fbe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ORM/DataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -2706,6 +2706,12 @@ public function getCMSCompositeValidator(): CompositeValidator

// Support for the old method during the deprecation period
if ($this->hasMethod('getCMSValidator')) {
Deprecation::notice(
'5.4.0',
'The getCMSValidator() method is deprecated and won\'t be supported in a future major release.'
. ' Override getCMSCompositeValidator() instead.',
Deprecation::SCOPE_GLOBAL
);
$compositeValidator->addValidator($this->getCMSValidator());
}

Expand Down

0 comments on commit 7e31fbe

Please sign in to comment.