Make WordPress Core


Ignore:
Timestamp:
08/12/2020 03:03:50 PM (6 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-session-tokens.php

    r47122 r48788  
    6767     * @return string A hash of the session token (a verifier).
    6868     */
    69     final private function hash_token( $token ) {
     69    private function hash_token( $token ) {
    7070        // If ext/hash is not present, use sha1() instead.
    7171        if ( function_exists( 'hash' ) ) {
Note: See TracChangeset for help on using the changeset viewer.