Opened 8 months ago
Closed 8 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: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | HTTP API | Keywords: | has-patch |
| Focuses: | coding-standards | Cc: |
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.
In 60191: