Skip to content

Commit

Permalink
ENH Don't use deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Sep 17, 2024
1 parent c21cf6d commit de3cb61
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::withSuppressedWarning() 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::withSuppressedWarning(function () {
$class = Extension::class;
Deprecation::notice('2.3.0', "Subclass $class instead", Deprecation::SCOPE_CLASS);
});
Expand Down

0 comments on commit de3cb61

Please sign in to comment.