mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-03 05:56:43 +00:00
Fix tokenize call in DeprecationCollector
This commit is contained in:
committed by
Fabien Potencier
parent
b6a16a21f9
commit
13ca97c16f
@@ -58,7 +58,7 @@ class Twig_Util_DeprecationCollector
|
||||
|
||||
foreach ($iterator as $name => $contents) {
|
||||
try {
|
||||
$this->twig->parse($this->twig->tokenize($contents, $name));
|
||||
$this->twig->parse($this->twig->tokenize(new Twig_Source($contents, $name)));
|
||||
} catch (Twig_Error_Syntax $e) {
|
||||
// ignore templates containing syntax errors
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user