-
Notifications
You must be signed in to change notification settings - Fork 137
Conversation
9183b09
to
c692b95
Compare
Test/AbstractWidgetTestCase.php
Outdated
@@ -88,6 +78,11 @@ protected function setUp() | |||
$this->extension->initRuntime($environment); | |||
} | |||
|
|||
public function getRenderer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing PHPDoc.
c692b95
to
94f03f6
Compare
Test/AbstractWidgetTestCase.php
Outdated
@@ -89,6 +80,14 @@ protected function setUp() | |||
} | |||
|
|||
/** | |||
* @return TwigRendererInterface | |||
*/ | |||
public function getRenderer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Done!
This breaks with Symfony 3.4, but luckily, there is a very simple implementation of Twig_RuntimeLoaderInterface, let's try it! Implies a minor Twig version bump.
94f03f6
to
05b20e0
Compare
->method('load') | ||
->with($this->equalTo('Symfony\Bridge\Twig\Form\TwigRenderer')) | ||
->will($this->returnValue($this->renderer)); | ||
$runtimeLoader = new \Twig_FactoryRuntimeLoader([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use this: https://github.com/twigphp/Twig/blob/1.x/src/RuntimeLoader/FactoryRuntimeLoader.php
Twig 1.34 is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do it later.
->method('load') | ||
->with($this->equalTo('Symfony\Bridge\Twig\Form\TwigRenderer')) | ||
->will($this->returnValue($this->renderer)); | ||
$runtimeLoader = new \Twig_FactoryRuntimeLoader([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do it later.
I am targeting this branch, because this does not break BC.
Changelog
Subject
This fixes the 3.4 build.