mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +00:00
remove old code for setting all optimizers
This commit is contained in:
@@ -37,9 +37,7 @@ class Twig_NodeVisitor_Optimizer implements Twig_NodeVisitorInterface
|
||||
*/
|
||||
public function __construct($optimizers = -1)
|
||||
{
|
||||
if (null === $optimizers) {
|
||||
$mode = self::OPTIMIZE_ALL;
|
||||
} elseif (!is_int($optimizers) || $optimizers > 2) {
|
||||
if (!is_int($optimizers) || $optimizers > 2) {
|
||||
throw new InvalidArgumentException(sprintf('Optimizer mode "%s" is not valid.', $optimizers));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user