We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c85c6ca commit 573e22cCopy full SHA for 573e22c
1 file changed
Tests/FunctionalTest.php
@@ -29,7 +29,7 @@ public function testIsCached()
29
$twig = $this->createEnvironment(['index' => '{% cache "city;v1" %}{{- city -}}{% endcache %}'], $cache);
30
31
$this->assertSame('Paris', $twig->render('index', ['city' => 'Paris']));
32
- $value = $cache->get('city;v1', function () { throw new \RuntimeException('Key should be in the cache'); });
+ $value = $cache->get('city;v1', static function () { throw new \RuntimeException('Key should be in the cache'); });
33
$this->assertSame('Paris', $value);
34
}
35
0 commit comments