minor #25260 [Intl] Correct Typehint (votemike)
This PR was merged into the 4.0 branch.
Discussion
----------
[Intl] Correct Typehint
| Q | A
| ------------- | ---
| Branch? | 4.0
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
<!--
- Bug fixes must be submitted against the lowest branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too).
- Features and deprecations must be submitted against the master branch.
- Replace this comment by a description of what your PR is solving.
-->
Commits
-------
5377e28463
[Intl] Correct Typehint
This commit is contained in:
commit
1dc63f456c
@ -257,7 +257,7 @@ class NumberFormatter
|
||||
* @throws MethodArgumentValueNotImplementedException When the $style is not supported
|
||||
* @throws MethodArgumentNotImplementedException When the pattern value is different than null
|
||||
*/
|
||||
public function __construct(?string $locale = 'en', string $style = null, $pattern = null)
|
||||
public function __construct(?string $locale = 'en', int $style = null, $pattern = null)
|
||||
{
|
||||
if ('en' !== $locale && null !== $locale) {
|
||||
throw new MethodArgumentValueNotImplementedException(__METHOD__, 'locale', $locale, 'Only the locale "en" is supported');
|
||||
|
Reference in New Issue
Block a user