8000 [TwigBundle] fixed typo · symfony/symfony@ff9051d · GitHub
[go: up one dir, main page]

Skip to content

Commit ff9051d

Browse files
committed
[TwigBundle] fixed typo
1 parent 226743f commit ff9051d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/TwigBundle/Extension/CodeExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ public function formatArgs($args)
9797
} elseif ('array' === $item[0]) {
9898
$formattedValue = sprintf("<em>array</em>(%s)", is_array($item[1]) ? $this->formatArgs($item[1]) : $item[1]);
9999
} elseif ('string' === $item[0]) {
100-
$formattedValue = sprintf("'%s'", htmlspecialchars($item[1], ENT_QUOTES, $this->getCharset()));
100+
$formattedValue = sprintf("'%s'", htmlspecialchars($item[1], ENT_QUOTES, $this->charset));
101101
} elseif ('null' === $item[0]) {
102102
$formattedValue = '<em>null</em>';
103103
} elseif ('boolean' === $item[0]) {
104104
$formattedValue = '<em>'.strtolower(var_export($item[1], true)).'</em>';
105105
} elseif ('resource' === $item[0]) {
106106
$formattedValue = '<em>resource</em>';
107107
} else {
108-
$formattedValue = str_replace("\n", '', var_export(htmlspecialchars((string) $item[1], ENT_QUOTES, $this->getCharset()), true));
108+
$formattedValue = str_replace("\n", '', var_export(htmlspecialchars((string) $item[1], ENT_QUOTES, $this->charset), true));
109109
}
110110

111111
$result[] = is_int($key) ? $formattedValue : sprintf("'%s' => %s", $key, $formattedValue);

0 commit comments

Comments
 (0)
0