Skip to content

Commit

Permalink
DEP Increase minimum version of silverstripe/framework
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Sep 23, 2024
1 parent 1c521e5 commit e337894
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Clear.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ class Clear extends Controller
public function __construct()
{
parent::__construct();
if (!method_exists(Deprecation::class, 'withSuppressedNotice')
|| !method_exists(Deprecation::class, 'notice')
) {
return;
}
Deprecation::withSuppressedNotice(function () {
Deprecation::notice(
'1.1.0',
Expand Down

0 comments on commit e337894

Please sign in to comment.