Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aee1caf

Browse files
committed
[Form] Remove useless intl_get_error_code() call
Fix #63113 (review)
1 parent 1956998 commit aee1caf

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ private function parse(\IntlDateFormatter $dateFormatter, string $value): int|fl
215215
// If parsing failed and the value contains regular spaces, try with ICU 72+ whitespace
216216
if ((false === $timestamp || 0 !== intl_get_error_code()) && str_contains($value, ' ')) {
217217
$icuValue = str_replace(' ', self::NARROW_NO_BREAK_SPACE, $value);
218-
intl_get_error_code(); // Clear previous error
219218

220219
try {
221220
$timestamp = @$dateFormatter->parse($icuValue);

0 commit comments

Comments
 (0)