We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function cal_days_in_month($calendar_id, $month, $year)
VERSUS
cal_days_in_month(int $calendar, int $month, int $year): int
Source: https://www.php.net/manual/en/function.cal-days-in-month.php
So when you call, for example:
cal_days_in_month(CAL_GREGORIAN, '04', '2022');
It returns 28 even though it should return 30.
28
30
The text was updated successfully, but these errors were encountered:
Thanks for reporting this.
We cannot add type-hints as we must support PHP 5.3.
But we can cast the parameters to integers, which will fix the issue.
Sorry, something went wrong.
a1442ee
I have just tagged a 2.6.0 release, which is now available from packagist:
2.6.0
https://packagist.org/packages/fisharebest/ext-calendar
No branches or pull requests
VERSUS
Source: https://www.php.net/manual/en/function.cal-days-in-month.php
So when you call, for example:
It returns
28
even though it should return30
.The text was updated successfully, but these errors were encountered: