Make WordPress Core

Opened 9 years ago

Closed 9 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:


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.


Attachments (1)

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

Download all attachments as: .zip

Change History (4)

9 years ago

#1 @johnbillion
9 years ago

  • Keywords has-patch added

#2 @DrewAPicture
9 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
9 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.