mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Code Modernization: Remove final keyword from private methods.
Declaring a `private` method as `final` is an oxymoron, as `private` methods cannot be overloaded anyway. Using `final private function...` will generate a warning in PHP 8. Props jrf. Fixes #50897. git-svn-id: https://develop.svn.wordpress.org/trunk@48788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -73,7 +73,7 @@ class Tests_User_Capabilities extends WP_UnitTestCase {
|
||||
return $meta_value;
|
||||
}
|
||||
|
||||
final private function _getSingleSitePrimitiveCaps() {
|
||||
private function _getSingleSitePrimitiveCaps() {
|
||||
return array(
|
||||
|
||||
'unfiltered_html' => array( 'administrator', 'editor' ),
|
||||
@@ -155,7 +155,7 @@ class Tests_User_Capabilities extends WP_UnitTestCase {
|
||||
|
||||
}
|
||||
|
||||
final private function _getMultiSitePrimitiveCaps() {
|
||||
private function _getMultiSitePrimitiveCaps() {
|
||||
return array(
|
||||
|
||||
'unfiltered_html' => array(),
|
||||
@@ -238,7 +238,7 @@ class Tests_User_Capabilities extends WP_UnitTestCase {
|
||||
|
||||
}
|
||||
|
||||
final private function _getSingleSiteMetaCaps() {
|
||||
private function _getSingleSiteMetaCaps() {
|
||||
return array(
|
||||
'create_sites' => array(),
|
||||
'delete_sites' => array(),
|
||||
@@ -276,7 +276,7 @@ class Tests_User_Capabilities extends WP_UnitTestCase {
|
||||
);
|
||||
}
|
||||
|
||||
final private function _getMultiSiteMetaCaps() {
|
||||
private function _getMultiSiteMetaCaps() {
|
||||
return array(
|
||||
'create_sites' => array(),
|
||||
'delete_sites' => array(),
|
||||
|
||||
Reference in New Issue
Block a user