PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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;
}