[wp-trac] [WordPress Trac] #51557: Modernize: use explicit visibility for property declarations
WordPress Trac
noreply at wordpress.org
Sat Oct 17 16:24:50 UTC 2020
#51557: Modernize: use explicit visibility for property declarations
------------------------------+-------------------------------
Reporter: jrf | Owner: SergeyBiryukov
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 5.6
Component: General | Version: trunk
Severity: minor | Resolution: fixed
Keywords: has-patch commit | Focuses: coding-standards
------------------------------+-------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"49184" 49184]:
{{{
#!CommitTicketReference repository="" revision="49184"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51557#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list