Make WordPress Core


Ignore:
Timestamp:
10/17/2020 04:24:35 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Use explicit visibility for class property declarations.

Using var or only static to declare a class property is PHP 4 code.

This updates the codebase to use explicit visibility modifiers introduced in PHP 5.

Props jrf.
Fixes #51557. See #22234.

File:
1 edited

Legend:

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

    r49120 r49184  
    1212    class POMO_Reader {
    1313
    14         var $endian = 'little';
    15         var $_post  = '';
     14        public $endian = 'little';
     15        public $_post  = '';
    1616
    1717        /**
     
    227227    class POMO_StringReader extends POMO_Reader {
    228228
    229         var $_str = '';
     229        public $_str = '';
    230230
    231231        /**
Note: See TracChangeset for help on using the changeset viewer.