Plugin triggers warning on PHP 8
-
Hi, after switching my local WP to PHP 8 I see following in my logs:
Warning: Private methods cannot be final as they are never overridden by other classes in \wp-content\plugins\disable-gutenberg-1.1.0\helpers\boot.php on line 50
Warning: Private methods cannot be final as they are never overridden by other classes in \wp-content\plugins\disable-gutenberg-1.1.0\helpers\singleton.php on line 76
I suppose switching
final private function __clone() {}
to
final protected function __clone() {}
should solve the issue
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Plugin triggers warning on PHP 8’ is closed to new replies.