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/entry.php

    r47122 r49184  
    1919         * @var boolean
    2020         */
    21         var $is_plural = false;
     21        public $is_plural = false;
    2222
    23         var $context             = null;
    24         var $singular            = null;
    25         var $plural              = null;
    26         var $translations        = array();
    27         var $translator_comments = '';
    28         var $extracted_comments  = '';
    29         var $references          = array();
    30         var $flags               = array();
     23        public $context             = null;
     24        public $singular            = null;
     25        public $plural              = null;
     26        public $translations        = array();
     27        public $translator_comments = '';
     28        public $extracted_comments  = '';
     29        public $references          = array();
     30        public $flags               = array();
    3131
    3232        /**
Note: See TracChangeset for help on using the changeset viewer.