Make WordPress Core

#63491 closed defect (bug) (fixed)

Missing return type in public function parselisting( $line )

Reported by: opurockey Owned by: SergeyBiryukov
Priority: normal Milestone: 6.9
Component: Filesystem API Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Hello

In wp-admin\includes\class-wp-filesystem-ftpext.php line: 664, It returns empty string but that return type is missing on function doc.

Please have a look. Thanks.

Attachments (1)

63491.patch​ (428 bytes ) - added by opurockey 18 months ago.

Download all attachments as: .zip

Change History (4)

#1 @abcd95
18 months ago

  • Keywords has-patch added

Hi @opurockey, Thanks for the ticket.

I can see that the empty string return statement was added in [45583] and the DocBlock was added in [55714], which apparently did not handle the return type of the function in the docblock.

#2 @SergeyBiryukov
18 months ago

  • Milestone Awaiting Review → 6.9

#3 @SergeyBiryukov
18 months ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 60261:

Docs: Improve documentation for WP_Filesystem_FTPext::parselisting().

Includes:

  • Adding a summary for the method.
  • Documenting the $line parameter.
  • Documenting the case when an empty string is returned.

Follow-up to [7126], [30678], [55714].

Props opurockey, abcd95, SergeyBiryukov.
Fixes #63491.

Note: See TracTickets for help on using tickets.