WordPress build repository browser

Changeset 62049


Ignore:
Timestamp:
07/16/2026 09:30:50 AM (3 months ago)
Author:
swissspidy
Message:

Code Modernization: Avoid returning values in constructors.

Returning values from __construct() and __destruct() is a deprecated practice starting with PHP 8.6, as per ​a recent RFC.

Props iamchitti, Soean.
Fixes #65637.
Built from ​https://develop.svn.wordpress.org/trunk@62765

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-pop3.php

    r58683 r62049  
    6565            }
    6666        }
    67         return true;
    6867    }
    6968
  • trunk/wp-includes/pomo/streams.php

    r56059 r62049  
    315315                        $this->_str = file_get_contents( $filename );
    316316                        if ( false === $this->_str ) {
    317                                 return false;
     317                                return;
    318318                        }
    319319                        $this->_pos = 0;
  • trunk/wp-includes/version.php

    r62048 r62049  
    1717 * @global string $wp_version
    1818 */
    19 $wp_version = '7.1-beta1-62764';
     19$wp_version = '7.1-beta1-62765';
    2020
    2121/**
Note: See TracChangeset for help on using the changeset viewer.