Skip to content

Commit

Permalink
Twig 1.35-DEV
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Bleiweis committed Sep 3, 2017
1 parent 86a82d7 commit 09aa99d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions wbce/include/Sensio/Twig/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
* 1.34.5 (2017-XX-XX)
* 1.35.0 (2017-XX-XX)

* fixed use TokenParser to return an empty Node
* added RuntimeExtensionInterface
* added circular reference detection when loading templates

* 1.34.4 (2017-07-04)
Expand Down Expand Up @@ -146,7 +148,7 @@

* fixed reserved keywords (forbids true, false, null and none keywords for variables names)
* fixed support for PHP7 (Throwable support)
* marked the following methods as being internals on Twig_Environment:
* marked the following methods as being internals on Twig_Environment:
getFunctions(), getFilters(), getTests(), getFunction(), getFilter(), getTest(),
getTokenParsers(), getTags(), getNodeVisitors(), getUnaryOperators(), getBinaryOperators(),
getFunctions(), getFilters(), getGlobals(), initGlobals(), initExtensions(), and initExtension()
Expand Down Expand Up @@ -230,7 +232,7 @@
* fixed limited RCEs when in sandbox mode
* deprecated Twig_Template::getEnvironment()
* deprecated the _self variable for usage outside of the from and import tags
* added Twig_BaseNodeVisitor to ease the compatibility of node visitors
* added Twig_BaseNodeVisitor to ease the compatibility of node visitors
between 1.x and 2.x

* 1.19.0 (2015-07-31)
Expand Down
8 changes: 4 additions & 4 deletions wbce/include/Sensio/Twig/lib/Twig/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
*/
class Twig_Environment
{
const VERSION = '1.34.5-DEV';
const VERSION_ID = 13405;
const VERSION = '1.35.0-DEV';
const VERSION_ID = 13500;
const MAJOR_VERSION = 1;
const MINOR_VERSION = 34;
const RELEASE_VERSION = 5;
const MINOR_VERSION = 35;
const RELEASE_VERSION = 0;
const EXTRA_VERSION = 'DEV';

protected $charset;
Expand Down
2 changes: 2 additions & 0 deletions wbce/include/Sensio/Twig/lib/Twig/TokenParser/Use.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public function parse(Twig_Token $token)
$stream->expect(Twig_Token::BLOCK_END_TYPE);

$this->parser->addTrait(new Twig_Node(array('template' => $template, 'targets' => new Twig_Node($targets))));

return new Twig_Node();
}

public function getTag()
Expand Down

0 comments on commit 09aa99d

Please sign in to comment.