Skip to content

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

Closed
wants to merge 3 commits into from
Closed

Conversation

kocsismate
Copy link
Member

No description provided.

@Girgias
Copy link
Member

Girgias commented Nov 11, 2019

Test failures are legit, make step fails.

@kocsismate
Copy link
Member Author

kocsismate commented Nov 11, 2019

@Girgias Thanks for the heads up, now I see the issue. My other PRs where I pushed fixes also have similar problems.

@kocsismate kocsismate force-pushed the intl-calendar branch 2 times, most recently from f8c776a to 277f3e4 Compare January 5, 2020 23:12
@kocsismate
Copy link
Member Author

Is it good to be merged?

Copy link
Member

@nikic nikic left a 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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RETURN_THROWS()


/**
* @param IntlTimeZone|DateTimeZone|string|null $timeZone
* @return IntlGregorianCalendar|null
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, indeed.

/** @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 {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InltIterator?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed now!

@php-pulls php-pulls closed this in a827db2 Feb 4, 2020
@kocsismate kocsismate deleted the intl-calendar branch February 4, 2020 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants