mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 04:46:49 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user