Home » Date and Time » Date » Bug #1104
getDay() type cast not needed
Details
| Submitted | 2004-03-31 13:02 UTC |
|---|---|
| From | mikeatwork at ukonline dot co dot uk |
| Status | Bogus |
| Package | Date |
| PHP Version | 4.3.4 |
| OS | Linux 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;
}