Skip to content

[Intl] Fix compile type errors #33734

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

Merged
merged 1 commit into from
Sep 27, 2019
Merged

[Intl] Fix compile type errors #33734

merged 1 commit into from
Sep 27, 2019

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Sep 27, 2019

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #...
License MIT
Doc PR symfony/symfony-docs#...

Fixes e.g. TypeError: Return value of Symfony\Component\Intl\Data\Generator\LanguageDataGenerator::generateDataForRoot() must be of the type array or null, none returned

Adding typehints in FallbackTrait seems forgotten, now added as all generator stuff is @internal anyway ran on latest PHP.

@fabpot
Copy link
Member

fabpot commented Sep 27, 2019

Thank you @ro0NL.

fabpot added a commit that referenced this pull request Sep 27, 2019
This PR was merged into the 4.4 branch.

Discussion
----------

[Intl] Fix compile type errors

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Fixes e.g. `TypeError: Return value of Symfony\Component\Intl\Data\Generator\LanguageDataGenerator::generateDataForRoot() must be of the type array or null, none returned`

Adding typehints in `FallbackTrait` seems forgotten, now added as all generator stuff is `@internal` anyway ran on latest PHP.

Commits
-------

96fae63 [Intl] Fix compile type errors
@fabpot fabpot merged commit 96fae63 into symfony:4.4 Sep 27, 2019
@ro0NL ro0NL deleted the intl branch September 27, 2019 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants