Opened 8 months ago
Closed 8 months ago
#48614 closed defect (bug) (fixed)
Return type of comments_link_feed uses invalid phpdoc keyword
| Reported by: | 
  
     | 
      Owned by: | 
  
     | 
    
|---|---|---|---|
| Milestone: | 5.4 | Priority: | normal | 
| Severity: | trivial | Version: | 5.4 | 
| Component: | Feeds | Keywords: | has-patch | 
| Focuses: | docs | Cc: | 
Description
In wp-includes/feed.php the return type of comments_link_feed is documented as none, which is not a valid keyword according to the phpdoc specification: https://docs.phpdoc.org/guides/types.html
The attached patch corrects none to be void. Alternatively the @return documentation tag might be removed altogether for the same effect.
Attachments (1)
Change History (3)
    
      
    #1
  
    
        
          
            
 @
            
8 months ago
        
    
  
  
  - Milestone changed from Awaiting Review to 5.4
 
I think this can just be removed. Per the documentation standards:
Note:
@return voidshould not be used outside of the default bundled themes.
Note: See
        TracTickets for help on using
        tickets.
    
Patch to set return type to void