Merge branch 'Ennexa-master' into dev
This commit is contained in:
@@ -22,6 +22,7 @@ matrix:
|
|||||||
dist: trusty
|
dist: trusty
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: hhvm
|
- php: hhvm
|
||||||
|
- php: 7.4snapshot
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- '[[ "$TRAVIS_PHP_VERSION" = 5.2* ]] && phpunit || vendor/bin/phpunit --verbose'
|
- '[[ "$TRAVIS_PHP_VERSION" = 5.2* ]] && phpunit || vendor/bin/phpunit --verbose'
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ class Mustache_Parser
|
|||||||
case Mustache_Tokenizer::T_BLOCK_VAR:
|
case Mustache_Tokenizer::T_BLOCK_VAR:
|
||||||
if ($this->pragmaBlocks) {
|
if ($this->pragmaBlocks) {
|
||||||
// BLOCKS pragma is enabled, let's do this!
|
// BLOCKS pragma is enabled, let's do this!
|
||||||
if ($parent[Mustache_Tokenizer::TYPE] === Mustache_Tokenizer::T_PARENT) {
|
if (isset($parent) && $parent[Mustache_Tokenizer::TYPE] === Mustache_Tokenizer::T_PARENT) {
|
||||||
$token[Mustache_Tokenizer::TYPE] = Mustache_Tokenizer::T_BLOCK_ARG;
|
$token[Mustache_Tokenizer::TYPE] = Mustache_Tokenizer::T_BLOCK_ARG;
|
||||||
}
|
}
|
||||||
$this->clearStandaloneLines($nodes, $tokens);
|
$this->clearStandaloneLines($nodes, $tokens);
|
||||||
@@ -275,7 +275,7 @@ class Mustache_Parser
|
|||||||
*/
|
*/
|
||||||
private function checkIfTokenIsAllowedInParent($parent, array $token)
|
private function checkIfTokenIsAllowedInParent($parent, array $token)
|
||||||
{
|
{
|
||||||
if ($parent[Mustache_Tokenizer::TYPE] === Mustache_Tokenizer::T_PARENT) {
|
if (isset($parent) && $parent[Mustache_Tokenizer::TYPE] === Mustache_Tokenizer::T_PARENT) {
|
||||||
throw new Mustache_Exception_SyntaxException('Illegal content in < parent tag', $token);
|
throw new Mustache_Exception_SyntaxException('Illegal content in < parent tag', $token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user