8000 [TwigBridge] fix constructor args check · symfony/symfony@fa82588 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa82588

Browse files
committed
[TwigBridge] fix constructor args check
1 parent d93024b commit fa82588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Extension/FormExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class FormExtension extends \Twig_Extension implements \Twig_Extension_InitRunti
3131

3232
public function __construct($renderer = null)
3333
{
34-
if ($this->renderer instanceof TwigRendererInterface) {
34+
if ($renderer instanceof TwigRendererInterface) {
3535
@trigger_error(sprintf('Passing a Twig Form Renderer to the "%s" constructor is deprecated since version 3.2 and won\'t be possible in 4.0. Pass the Twig_Environment to the TwigRendererEngine constructor instead.', static::class), E_USER_DEPRECATED);
3636
} elseif (null !== $renderer && !(is_array($renderer) && isset($renderer[0], $renderer[1]) && $renderer[0] instanceof ContainerInterface)) {
3737
throw new \InvalidArgumentException(sprintf('Passing any arguments the constructor of %s is reserved for internal use.', __CLASS__));

0 commit comments

Comments
 (0)
0