-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add stubs for IntlCalendar #4846
New issue
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
Conversation
d46a1b5
to
1f96f83
Compare
ebc6acd
to
cac3128
Compare
Test failures are legit, make step fails. |
@Girgias Thanks for the heads up, now I see the issue. My other PRs where I pushed fixes also have similar problems. |
cac3128
to
28ce5a9
Compare
28ce5a9
to
8c7b3ee
Compare
f8c776a
to
277f3e4
Compare
Is it good to be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG with nits.
co->ucal->set((int32_t)args[0], (int32_t)args[1], (int32_t)args[2]); | ||
} else if (arg_num == 4) { | ||
zend_argument_count_error("No variant with 4 arguments"); | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RETURN_THROWS()
ext/intl/calendar/calendar.stub.php
Outdated
|
||
/** | ||
* @param IntlTimeZone|DateTimeZone|string|null $timeZone | ||
* @return IntlGregorianCalendar|null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be IntlCalendar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, indeed.
ext/intl/calendar/calendar.stub.php
Outdated
/** @param IntlTimeZone|DateTimeZone|string|null $timeZone */ | ||
function intlcal_create_instance($timeZone = null, ?string $locale = null): IntlCalendar|null {} | ||
|
||
function intlcal_get_keyword_values_for_locale(string $key, string $locale, bool $commonlyUsed): Iterator|false {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InltIterator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed now!
277f3e4
to
2f266fc
Compare
No description provided.