Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
6367b690
Commit
6367b690
authored
Sep 01, 2015
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2557023
by alexpott: Strings are scalars
parent
d36af973
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
core/lib/Drupal/Core/Template/TwigExtension.php
core/lib/Drupal/Core/Template/TwigExtension.php
+1
-5
No files found.
core/lib/Drupal/Core/Template/TwigExtension.php
View file @
6367b690
...
...
@@ -455,11 +455,7 @@ public function renderVar($arg) {
return
NULL
;
}
// Optimize for strings as it is likely they come from the escape filter.
if
(
is_string
(
$arg
))
{
return
$arg
;
}
// Optimize for scalars as it is likely they come from the escape filter.
if
(
is_scalar
(
$arg
))
{
return
$arg
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment