Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#34032 closed defect (bug) (fixed)

callback is not a valid parameter type

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile johnbillion
Milestone: 4.4 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: docs Cc:

Description

In many of our docblocks, callback is used as a @param type. This is not a valid type in PHP, PSR-5, or phpDocumentor, which all use callable.

Refs:

Attachments (1)

34032.patch (33.0 KB) - added by johnbillion 8 years ago.

Download all attachments as: .zip

Change History (4)

@johnbillion
8 years ago

#1 @johnbillion
8 years ago

  • Keywords has-patch added

#2 @DrewAPicture
8 years ago

  • Milestone changed from Awaiting Review to 4.4

Wow, I've fixed a few here and there but I had no idea there were so many uses of callback out there.

#3 @johnbillion
8 years ago

  • Owner set to johnbillion
  • Resolution set to fixed
  • Status changed from new to closed

In 34566:

callback is not a valid type in PHP, PSR-5, or phpDocumentor. callable should be used instead.

Fixes #34032

Note: See TracTickets for help on using tickets.