8000 minor #5568 [Create Framework] Fix extract calls (replaces #5522) (ke… · symfony/symfony-docs@29c80ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 29c80ce

Browse files
committed
minor #5568 [Create Framework] Fix extract calls (replaces #5522) (kenjis)
This PR was merged into the 2.3 branch. Discussion ---------- [Create Framework] Fix extract calls (replaces #5522) Commits ------- a9d75c6 Fix code
2 parents d8950b2 + a9d75c6 commit 29c80ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create_framework/templating.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ rendered::
4141

4242
function render_template($request)
4343
{
44-
extract($request->attributes->all(), EXTR_SKIP);
44+
extract($request->attributes->all());
4545
ob_start();
4646
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
4747

@@ -110,7 +110,7 @@ Here is the updated and improved version of our framework::
110110

111111
function render_template($request)
112112
{
113-
extract($request->attributes->all(), EXTR_SKIP);
113+
extract($request->attributes->all());
114114
ob_start();
115115
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
116116

0 commit comments

Comments
 (0)
0