PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Date and Time » Date » Bug #1104

getDay() type cast not needed

Details

Submitted2004-03-31 13:02 UTC
Frommikeatwork at ukonline dot co dot uk
StatusBogus
PackageDate
PHP Version4.3.4
OSLinux Redhat
Roadmaps(Not assigned)

Comments

[2004-03-31 13:02 UTC] mikeatwork at ukonline dot co dot uk

Description:
------------
All other methods returning numeric data from the Date class do not have the type cast (int) upon returning.

/**
* Returns the day field of the date object
*
* Returns the day field of the date object
*
* @access public
* @return int the day
*/
function getDay()
{
return (int)$this->day;
}

Expected result:
----------------
/**
* Returns the day field of the date object
*
* Returns the day field of the date object
*
* @access public
* @return int the day
*/
function getDay()
{
return $this->day;
}