Skip to content

Commit

Permalink
API Remove deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 6, 2025
1 parent 0d52936 commit cd7cdcc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion src/DataDifferencer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use SilverStripe\Assets\Image;
use SilverStripe\Core\Convert;
use SilverStripe\Dev\Deprecation;
use SilverStripe\ORM\DataObject;
use SilverStripe\Model\List\ArrayList;
use SilverStripe\ORM\FieldType\DBField;
Expand Down
12 changes: 1 addition & 11 deletions src/Versioned.php
Original file line number Diff line number Diff line change
Expand Up @@ -1987,20 +1987,10 @@ public function stagesDifferRecursive(): bool
* @param string $sort
* @param string $limit
* @param string $join Deprecated, use leftJoin($table, $joinClause) instead
* @param string $having @deprecated 2.2.0 The $having parameter does nothing and will be removed without
* equivalent functionality to replace it
* @return ArrayList<Versioned_Version>
*/
public function Versions($filter = "", $sort = "", $limit = "", $join = "", $having = "")
public function Versions($filter = "", $sort = "", $limit = "", $join = "")
{
if ($having) {
Deprecation::withSuppressedNotice(function () {
$message = 'The $having parameter does nothing and will be removed without equivalent'
. ' functionality to replace it';
Deprecation::notice('2.2.0', $message);
});
}

$owner = $this->owner;

// When an object is not yet in the Database, we can't get its versions
Expand Down

0 comments on commit cd7cdcc

Please sign in to comment.