Skip to content

Commit 79eb557

Browse files
Merge branch '4.0'
* 4.0: SCA with Php Inspections (EA Extended) Add test case for #25264 Fixed the null value exception case. Remove rc/beta suffix from composer.json files Ensure services & aliases can be referred to with `__toString`able objects Throw an exception is expression language is not installed [DI] Cast ids to string, as done on 3.4 Fail as early and noisily as possible [Console][DI] Fail gracefully [FrameworkBundle] Fix visibility of a test helper [link] clear the cache after linking [DI] Trigger deprecation when setting a to-be-private synthetic service [Intl] Correct Typehint [link] Prevent warnings when running link with 2.7 [Validator] ExpressionValidator should use OBJECT_TO_STRING to allow value in message do not eagerly filter comment lines [WebProfilerBundle], [TwigBundle] Fix Profiler breaking XHTML pages (Content-Type: application/xhtml+xml)
2 parents a8844d3 + 6bf2702 commit 79eb557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NumberFormatter/NumberFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class NumberFormatter
257257
* @throws MethodArgumentValueNotImplementedException When the $style is not supported
258258
* @throws MethodArgumentNotImplementedException When the pattern value is different than null
259259
*/
260-
public function __construct(?string $locale = 'en', string $style = null, $pattern = null)
260+
public function __construct(?string $locale = 'en', int $style = null, $pattern = null)
261261
{
262262
if ('en' !== $locale && null !== $locale) {
263263
throw new MethodArgumentValueNotImplementedException(__METHOD__, 'locale', $locale, 'Only the locale "en" is supported');

0 commit comments

Comments
 (0)