From 9c4efd0d918d865233c111a4fe33b026a2575a71 Mon Sep 17 00:00:00 2001 From: Vyacheslav Pavlov Date: Sat, 23 Jul 2016 18:07:08 +0300 Subject: [PATCH] [FrameworkBundle] Fixed parameters number mismatch declaration --- .../Bundle/FrameworkBundle/Command/AbstractConfigCommand.php | 2 +- .../FrameworkBundle/Tests/Templating/DelegatingEngineTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php index aceaa0cbdc..6afe16a8d2 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php @@ -48,7 +48,7 @@ abstract class AbstractConfigCommand extends ContainerDebugCommand } else { $output->writeln($message); $table = new Table($output); - $table->setHeaders($headers)->setRows($rows)->render($output); + $table->setHeaders($headers)->setRows($rows)->render(); } } diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php index c5d2d8bbeb..0f88721813 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/DelegatingEngineTest.php @@ -38,7 +38,7 @@ class DelegatingEngineTest extends \PHPUnit_Framework_TestCase $delegatingEngine = new DelegatingEngine($container, array('engine.first', 'engine.second')); - $this->assertSame($secondEngine, $delegatingEngine->getEngine('template.php', array('foo' => 'bar'))); + $this->assertSame($secondEngine, $delegatingEngine->getEngine('template.php')); } /** @@ -55,7 +55,7 @@ class DelegatingEngineTest extends \PHPUnit_Framework_TestCase )); $delegatingEngine = new DelegatingEngine($container, array('engine.first', 'engine.second')); - $delegatingEngine->getEngine('template.php', array('foo' => 'bar')); + $delegatingEngine->getEngine('template.php'); } public function testRenderResponseWithFrameworkEngine()