Skip to content

Commit bf6ab29

Browse files
committed
CacheMacro: compatibility with Latte master
1 parent 62a27d9 commit bf6ab29

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Bridges/CacheLatte/CacheMacro.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function nodeClosed(Latte\MacroNode $node)
7979
/**
8080
* @return void
8181
*/
82-
public static function initRuntime(Latte\Template $template)
82+
public static function initRuntime(Latte\Runtime\Template $template)
8383
{
8484
if (!empty($template->global->cacheStack)) {
8585
$file = (new \ReflectionClass($template))->getFileName();

tests/Bridges.Latte/CacheMacro.cache.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ Assert::matchFile(
3232
);
3333
Assert::matchFile(
3434
__DIR__ . '/expected/CacheMacro.cache.inc.phtml',
35-
file_get_contents($latte->getCacheFile(__DIR__ . '/templates/include.cache.latte'))
35+
file_get_contents($latte->getCacheFile(__DIR__ . strtr('/templates/include.cache.latte', '/', DIRECTORY_SEPARATOR)))
3636
);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
// source: %A%
33

4-
class Template%a% extends Latte\Template
4+
class Template%a% extends Latte\Runtime\Template
55
{
66

77
function render()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
// source: %A%
33

4-
class Template%a% extends Latte\Template
4+
class Template%a% extends Latte\Runtime\Template
55
{
66

77
function render()

0 commit comments

Comments
 (0)