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.
Built from https://develop.svn.wordpress.org/trunk@48788


git-svn-id: http://core.svn.wordpress.org/trunk@48550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-08-12 15:05:08 +00:00
parent dc63fb7c85
commit 3ccc91894b
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ abstract class WP_Session_Tokens {
* @param string $token Session token to hash.
* @return string A hash of the session token (a verifier).
*/
final private function hash_token( $token ) {
private function hash_token( $token ) {
// If ext/hash is not present, use sha1() instead.
if ( function_exists( 'hash' ) ) {
return hash( 'sha256', $token );

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-48783';
$wp_version = '5.6-alpha-48788';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.