Skip to content

Commit

Permalink
ENH Don't use deprecated method (#1826)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Sep 19, 2024
1 parent c21cf6d commit 6f83afe
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 6f83afe

Please sign in to comment.