1--TEST-- 2Deprecating a macro with "deprecated" tag 3--TEMPLATE-- 4{% import 'greeting.twig' as greeting %} 5 6{{ greeting.welcome('Fabien') }} 7 8--TEMPLATE(greeting.twig)-- 9{% macro welcome(name) %} 10 {% deprecated 'The "welcome" macro is deprecated, use "hello" instead.' %} 11 {% import _self as self %} 12 {{ self.hello(name) }} 13{% endmacro %} 14 15{% macro hello(name) %} 16Hello {{ name }} 17{% endmacro %} 18--DATA-- 19return [] 20--EXPECT-- 21 Hello Fabien 22