Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0b88aed

Browse filesBrowse files
committed
Remove redundant sprintf argument.
1 parent b935b93 commit 0b88aed
Copy full SHA for 0b88aed

File tree

3 files changed

+4
-4
lines changed
Filter options

3 files changed

+4
-4
lines changed

‎src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ public function testCompile()
102102

103103
protected function getVariableGetter($name)
104104
{
105-
return sprintf('($context["%s"] ?? null)', $name, $name);
105+
return sprintf('($context["%s"] ?? null)', $name);
106106
}
107107
}

‎src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,6 @@ public function testCompileLabelWithLabelThatEvaluatesToNullAndAttributes()
271271

272272
protected function getVariableGetter($name)
273273
{
274-
return sprintf('($context["%s"] ?? null)', $name, $name);
274+
return sprintf('($context["%s"] ?? null)', $name);
275275
}
276276
}

‎src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testCompileStrict()
4444

4545
protected function getVariableGetterWithoutStrictCheck($name)
4646
{
47-
return sprintf('($context["%s"] ?? null)', $name, $name);
47+
return sprintf('($context["%s"] ?? null)', $name);
4848
}
4949

5050
protected function getVariableGetterWithStrictCheck($name)
@@ -53,6 +53,6 @@ protected function getVariableGetterWithStrictCheck($name)
5353
return sprintf('(isset($context["%s"]) || array_key_exists("%s", $context) ? $context["%s"] : (function () { throw new Twig_Error_Runtime(\'Variable "%s" does not exist.\', 0, $this->getSourceContext()); })())', $name, $name, $name, $name);
5454
}
5555

56-
return sprintf('($context["%s"] ?? $this->getContext($context, "%s"))', $name, $name, $name);
56+
return sprintf('($context["%s"] ?? $this->getContext($context, "%s"))', $name, $name);
5757
}
5858
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.