Skip to content

Commit

Permalink
bug #2298 Remove $env argument type from ExpressionParser constructor…
Browse files Browse the repository at this point in the history
… (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
  • Loading branch information
fabpot committed Dec 16, 2016
2 parents 1ee6bee + 3de96ef commit 2c92684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Twig/ExpressionParser.php
Expand Up @@ -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;

Expand Down

0 comments on commit 2c92684

Please sign in to comment.