WordPress.org

Make WordPress Core

Opened 4 weeks ago

Last modified 4 weeks ago

#44454 new defect (bug)

Argument type in PHODoc comment does not match with the parameter type

Reported by: subrataemfluence Owned by:
Milestone: 5.0 Priority: normal
Severity: normal Version: trunk
Component: Cache API Keywords: needs-patch needs-refresh
Focuses: docs, coding-standards Cc:

Description

File: /wp-includes/cache.php

<?php
...
* @param string     $force  Optional. Unused. Whether to force a refetch rather than relying on the local
...
public function get( $key, $group = 'default', $force = false, &$found = null ) {
  ...
}

Should be:

<?php
* @param bool     $force  Optional. Unused. Whether to force a refetch rather than relying on the local

Attachments (3)

44454.diff (816 bytes) - added by subrataemfluence 4 weeks ago.
44454-2.diff (818 bytes) - added by subrataemfluence 4 weeks ago.
44454-3.diff (816 bytes) - added by subrataemfluence 4 weeks ago.

Download all attachments as: .zip

Change History (4)

#1 @netweb
4 weeks ago

  • Keywords needs-refresh added
  • Milestone changed from Awaiting Review to 5.0

Spacing needs an update after the change in 44454.diff please @subrataemfluence

Note: See TracTickets for help on using tickets.