Opened 11 years ago
Closed 11 years ago
#27940 closed defect (bug) (fixed)
phpDoc for function current_time is wrong
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | trivial | Version: | 2.7 |
Component: | Date/Time | Keywords: | has-patch 4.0-early commit |
Focuses: | docs | Cc: |
Description
Wrong (current)
* @return int|string String if $type is 'gmt', int if $type is 'timestamp'.
Correct:
* @return int|string String if $type is 'mysql' or not defined, int if $type is 'timestamp'.
Attachments (2)
Change History (8)
#2
@
11 years ago
- Component changed from Comments to Date/Time
- Focuses docs added
- Keywords 4.0-early added
- Milestone changed from Awaiting Review to Future Release
- Version changed from trunk to 2.7
Note: See
TracTickets for help on using
tickets.
Introduced in [8606].
$type
is a required parameter, so "or not defined" seems inaccurate.I'd suggest
Integer if $type is 'timestamp', string otherwise
. Related: [27259].