mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-09 13:25:41 +00:00
Fix ambiguous syntax parsing
This commit is contained in:
@@ -164,6 +164,7 @@ class TwigTestExtension extends AbstractExtension
|
||||
new TwigFilter('magic_call_array', ['Twig\Tests\TwigTestExtension', 'magicStaticCall']),
|
||||
new TwigFilter('*_path', [$this, 'dynamic_path']),
|
||||
new TwigFilter('*_foo_*_bar', [$this, 'dynamic_foo']),
|
||||
new TwigFilter('not', [$this, 'notFilter']),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -188,6 +189,11 @@ class TwigTestExtension extends AbstractExtension
|
||||
];
|
||||
}
|
||||
|
||||
public function notFilter($value)
|
||||
{
|
||||
return 'not '.$value;
|
||||
}
|
||||
|
||||
public function §Filter($value)
|
||||
{
|
||||
return "§{$value}§";
|
||||
|
||||
Reference in New Issue
Block a user