Skip to content

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