dashboard-cleanup icon indicating copy to clipboard operation
dashboard-cleanup copied to clipboard

Plugin triggers warning on PHP 8

Open pacmanito opened this issue 4 years ago • 0 comments

Hi, after switching my local WP to PHP 8 I see following in logs:

Warning: Private methods cannot be final as they are never overridden by other classes in \wp-content\plugins\dashboard-cleanup-1.1.2\helpers\boot.php on line 50

Warning: Private methods cannot be final as they are never overridden by other classes in \wp-content\plugins\dashboard-cleanup-1.1.2\helpers\singleton.php on line 76

I suppose switching final private function __clone() {} to final protected function __clone() {} should solve the issue

pacmanito avatar Oct 07 '21 11:10 pacmanito