You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`IntlDateParser->parse()` behaves differently when `intl.error_level` and/or `intl.use_exceptions` are not 0.
This change makes sure `\IntlException` is caught when `intl.use_exceptions` is 1 and warnings thrown when `intl.error_level` is not 0 are ignored.
Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php
+46
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,12 @@ protected function setUp(): void
27
27
{
28
28
parent::setUp();
29
29
30
+
// Normalize intl. configuration settings.
31
+
if (\extension_loaded('intl')) {
32
+
$this->iniSet('intl.use_exceptions', 0);
33
+
$this->iniSet('intl.error_level', 0);
34
+
}
35
+
30
36
// Since we test against "de_AT", we need the full implementation
31
37
IntlTestHelper::requireFullIntl($this, '57.1');
32
38
@@ -322,4 +328,44 @@ public function testReverseTransformFiveDigitYearsWithTimestamp()
0 commit comments