Skip to content

Commit 8c2bba8

Browse files
committed
tests: compatibility with Latte master
1 parent 9a288ab commit 8c2bba8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Bridges/CacheLatte/CacheMacro.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function finalize()
5252
public function nodeOpened(Latte\MacroNode $node)
5353
{
5454
if ($node->modifiers) {
55-
throw new Latte\CompileException("Modifiers are not allowed in {{$node->name}}");
55+
throw new Latte\CompileException('Modifiers are not allowed in ' . Latte\Helpers::formatNotation($node));
5656
}
5757
$this->used = TRUE;
5858
$node->isEmpty = FALSE;

tests/Bridges.Latte/expected/CacheMacro.cache.phtml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ Noncached content
1919

2020
<h1><?php echo %a% ?></h1>
2121

22-
<?php $this->createTemplate('include.cache.latte', ['localvar' => 11] + $this->params, "include")->renderToContentType('html') ?>
22+
<?php
23+
/* line 7 */
24+
$this->createTemplate('include.cache.latte', ['localvar' => 11] + $this->params, "include")->renderToContentType('html');
25+
?>
2326

2427
<?php
2528
$_tmp = array_pop($this->global->cacheStack);

0 commit comments

Comments
 (0)