Skip to content

Commit

Permalink
ENH Don't use deprecated method (silverstripe#1826)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored and kevinn3 committed Dec 9, 2024
1 parent 6e4b18a commit cee42b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/LeftAndMainExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ abstract class LeftAndMainExtension extends Extension
{
public function __construct()
{
// Wrapping with Deprecation::withNoReplacement() to avoid triggering deprecation notices
// Wrapping with Deprecation::withSuppressedNotice() to avoid triggering deprecation notices
// as we are unable to update existing subclasses of this class until a new major
// unless we add in the pointless empty methods that are in this class
Deprecation::withNoReplacement(function () {
Deprecation::withSuppressedNotice(function () {
$class = Extension::class;
Deprecation::notice('2.3.0', "Subclass $class instead", Deprecation::SCOPE_CLASS);
});
Expand Down

0 comments on commit cee42b6

Please sign in to comment.