Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin triggers warning on PHP 8 #1

Open
pacmanito opened this issue Oct 7, 2021 · 0 comments
Open

Plugin triggers warning on PHP 8 #1

pacmanito opened this issue Oct 7, 2021 · 0 comments

Comments

@pacmanito
Copy link

pacmanito commented Oct 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant