Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
twig_tweak
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
twig_tweak
Merge requests
!6
Issue
#3219625
: Possible Variable Overwrite
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3219625
: Possible Variable Overwrite
issue/twig_tweak-3219625:3219625-possible-variable-overwrite
into
3.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
piggito
requested to merge
issue/twig_tweak-3219625:3219625-possible-variable-overwrite
into
3.x
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
3.x
version 1
26ff7e4b
3 years ago
3.x (base)
and
latest version
latest version
1aad7516
1 commit,
3 years ago
version 1
26ff7e4b
1 commit,
3 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/TwigTweakExtension.php
+
1
−
1
Options
@@ -666,7 +666,7 @@ class TwigTweakExtension extends AbstractExtension {
*/
public
static
function
phpFilter
(
array
$context
,
string
$code
)
{
// Make Twig variables available in PHP code.
extract
(
$context
);
extract
(
$context
,
EXTR_SKIP
);
ob_start
();
// phpcs:ignore Drupal.Functions.DiscouragedFunctions.Discouraged
print
eval
(
$code
);
Loading