bug #2298 Remove $env argument type from ExpressionParser constructor (fancyweb)

This PR was merged into the 1.x branch.

Discussion
----------

Remove $env argument type from ExpressionParser constructor

Either the argument type should be removed, or the whole "else" block and the deprecation warning is useless.

Commits
-------

3de96ef Remove  argument type from ExpressionParser constructor
This commit is contained in:
Fabien Potencier
2016-12-16 11:11:06 +01:00
+1 -1
View File
@@ -33,7 +33,7 @@ class Twig_ExpressionParser
private $env;
public function __construct(Twig_Parser $parser, Twig_Environment $env = null)
public function __construct(Twig_Parser $parser, $env = null)
{
$this->parser = $parser;