Skip to content

Commit 0b88aed

Browse files
committed
Remove redundant sprintf argument.
1 parent b935b93 commit 0b88aed

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines 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

Lines 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

Lines 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)