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
* 6.4:
[VarDumper] Fix dumping on systems that don't have a working iconv
[Console] fix profiler with overridden `run()` method
[Config] Fix support for attributes on class constants and enum cases
Copy file name to clipboardExpand all lines: Dumper/AbstractDumper.php
+38-7Lines changed: 38 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -185,17 +185,48 @@ protected function utf8Encode(?string $s): ?string
185
185
return$s;
186
186
}
187
187
188
-
if (!\function_exists('iconv')) {
189
-
thrownew \RuntimeException('Unable to convert a non-UTF-8 string to UTF-8: required function iconv() does not exist. You should install ext-iconv or symfony/polyfill-iconv.');
188
+
if (\function_exists('iconv')) {
189
+
if (false !== $c = @iconv($this->charset, 'UTF-8', $s)) {
0 commit comments