Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#34032 closed defect (bug) (fixed)

callback is not a valid parameter type

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

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 11 years ago.

Download all attachments as: .zip

Change History (4)

@johnbillion
11 years ago

#1 @johnbillion
11 years ago

  • Keywords has-patch added

#2 @DrewAPicture
11 years ago

  • Milestone Awaiting Review → 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
11 years ago

  • Owner set to johnbillion
  • Resolution → fixed
  • Status new → 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.