Skip to content

Commit

Permalink
API Deprecate SSListExporter
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Sep 12, 2024
1 parent 9788a97 commit 239873b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Dev/SSListExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,30 @@
use SebastianBergmann\RecursionContext\Context;
use SilverStripe\ORM\SS_List;
use SilverStripe\View\ViewableData;
use SilverStripe\Dev\Deprecation;

if (!class_exists(Exporter::class)) {
return;
}

/**
* A custom exporter for prettier formatting of SilverStripe specific Objects in PHPUnit's failing test messages.
*
* @deprecated 5.4.0 Will be removed without equivalent functionality to replace it
*/
class SSListExporter extends Exporter implements TestOnly
{
public function __construct()
{
Deprecation::withNoReplacement(function () {
Deprecation::notice(
'5.4.0',
'Will be removed without equivalent functionality to replace it',
Deprecation::SCOPE_CLASS
);
});
}

/**
* @param mixed $value
* @param int $indentation
Expand Down

0 comments on commit 239873b

Please sign in to comment.