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 d200056
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Dev/SSListExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,22 @@

/**
* 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 d200056

Please sign in to comment.