The documentation explictly says so:
Before Twig 2.11, it was possible to use macros imported in a block in a "sub-block". When upgrading to 2.11, you need to either move the import in the global scope or reimport the macros explicitly in the "sub-blocks".
https://twig.symfony.com/doc/2.x/tags/macro.html#macros-scoping
A template written pre-2.11 is not guaranteed to render to the same result - or even compile successfully - using 2.11. This is a breaking change.
The documentation explictly says so:
https://twig.symfony.com/doc/2.x/tags/macro.html#macros-scoping
A template written pre-2.11 is not guaranteed to render to the same result - or even compile successfully - using 2.11. This is a breaking change.