Skip to content

Plugin triggers warning on PHP 8 #1

Open
@pacmanito

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions