mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
1.4.8
This commit is contained in:
@ -725,7 +725,14 @@ class Template extends Render
|
||||
if ($this->_options & Fenom::DENY_METHODS) {
|
||||
throw new \LogicException("Forbidden to call methods");
|
||||
}
|
||||
$code .= $this->parseArgs($tokens);
|
||||
do { // parse call-chunks: $var->func()->func()->prop->func()->...
|
||||
if($tokens->is('(')) {
|
||||
$code .= $this->parseArgs($tokens);
|
||||
}
|
||||
if($tokens->is(T_OBJECT_OPERATOR) && $tokens->isNext(T_STRING)) {
|
||||
$code .= '->'.$tokens->next()->getAndNext();
|
||||
}
|
||||
} while($tokens->is('(', T_OBJECT_OPERATOR));
|
||||
} elseif ($tokens->is(Tokenizer::MACRO_INCDEC)) {
|
||||
$code .= $tokens->getAndNext();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user