Opened 18 months ago
Closed 18 months ago
#63346 closed defect (bug) (fixed)
[Coding Standard]: Use self:: instead of class name for static member reference in WP_Http class
| Reported by: | dilipbheda | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.9 |
| Component: | HTTP API | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | coding-standards |
Description
This issue proposes a minor refactor to improve code maintainability and ensure proper static context within the class.
Find the following PHPCS error:
phpcs: error Squiz.Classes.SelfMemberReference.NotUsed - Must use "self::" for local static member reference
Current Code:
WP_Http::normalize_cookies( $parsed_args['cookies'] );
Proposed Change:
self::normalize_cookies( $parsed_args['cookies'] );
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 60191: