Problem/Motivation
Twig 2.0 has been released.
Twig 2 requires PHP 7. Drupal 8 will support PHP 5.6 until at least early 2019 (Drupal 8.7 or higher). #2842431: [policy] Remove PHP 5.5, 5.6 support in Drupal 8.7
Proposed resolution
Update it.
Create a abstraction layer for twig 1 and 2.
Revert changes to composer.lock and update twig to ~1.3
Remaining tasks
- Make patch to change version string in core/composer.json to
^1.23.1|^2
- Review
- Commit
User interface changes
n/a
API changes
Should be none.
Data model changes
n/a