mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
added a note about using rewind() after look()
This commit is contained in:
@@ -491,7 +491,8 @@ from the token stream (`$this->parser->getStream()`):
|
||||
token).
|
||||
|
||||
* `look()`: Looks a the next token. This is how you can have a look at the
|
||||
next token without consuming it.
|
||||
next token without consuming it (after you are done with `look()`, you must
|
||||
use `rewind()`).
|
||||
|
||||
Parsing expressions is done by calling the `parseExpression()` like we did for
|
||||
the `set` tag.
|
||||
|
||||
Reference in New Issue
Block a user