-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add various stubs for Intl #4819
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
3a71d64
to
b5d14fc
Compare
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 apart from one nit in resourcebundle_create.
} | ||
|
||
/** @return ResourceBundle|false|null */ | ||
function resourcebundle_create(?string $locale, ?string $bundlename, bool $fallback = true) {} |
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.
: ResourceBundle|false|null
should work now?
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.
Also, I don't think false
is possible here?
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.
Yep, I am fixing this right now.
*/ | ||
function resourcebundle_get(ResourceBundle $bundle, $index) {} | ||
|
||
function resourcebundle_count(ResourceBundle $bundle): int|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.
We should convert the "unconstructed" case into a hard Error exception in the future.
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.
I'd like this change! Will provide a PR sometime soon.
b5d14fc
to
6bb9002
Compare
Closes phpGH-4819 - Add stubs for idn functions - Add stubs for grapheme functions - Add stubs for Spoofchecker - Add stubs for Normalizer - Add stubs for ResourceBundle - Fix arginfos - Add support for union return types - Fix arginfo for resourcebundle_create()
Stubs for the following components: