Skip to content

Commit 28e6f52

Browse files
Review
1 parent d314c2b commit 28e6f52

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/Environment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ public function getTest(string $name): ?TwigTest
828828
}
829829

830830
/**
831-
* @param callable(string): (TokenParserInterface|false) $callable
831+
* @param callable(string): (TwigTest|false) $callable
832832
*/
833833
public function registerUndefinedTestCallback(callable $callable): void
834834
{

src/Test/IntegrationTestCase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ protected function doIntegrationTest($file, $message, $condition, $templates, $e
263263
$twig->registerUndefinedFunctionCallback($callback);
264264
}
265265

266+
foreach ($this->getUndefinedTestCallbacks() as $callback) {
267+
$twig->registerUndefinedTestCallback($callback);
268+
}
269+
266270
foreach ($this->getUndefinedTokenParserCallbacks() as $callback) {
267271
$twig->registerUndefinedTokenParserCallback($callback);
268272
}

0 commit comments

Comments
 (0)