Make WordPress Core


Ignore:
Timestamp:
11/02/2019 08:47:44 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Call PHP 5 constructors in methods extending POMO_Reader.

Follow-up to [46629].

See #48252.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pomo/streams.php

    r46631 r46632  
    150150         */
    151151        function __construct( $filename ) {
    152             parent::POMO_Reader();
     152            parent::__construct();
    153153            $this->_f = fopen( $filename, 'rb' );
    154154        }
     
    233233         */
    234234        function __construct( $str = '' ) {
    235             parent::POMO_Reader();
     235            parent::__construct();
    236236            $this->_str = $str;
    237237            $this->_pos = 0;
     
    301301         */
    302302        function __construct( $filename ) {
    303             parent::POMO_StringReader();
     303            parent::__construct();
    304304            $this->_str = file_get_contents( $filename );
    305305            if ( false === $this->_str ) {
     
    332332         */
    333333        public function __construct( $filename ) {
    334             parent::POMO_CachedFileReader( $filename );
     334            parent::__construct( $filename );
    335335        }
    336336
Note: See TracChangeset for help on using the changeset viewer.