Track Twig 4 support for EasyAdmin 5.x

Open
#7,954 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
php, symfony

Research direction

This is a dependency-compatibility tracking item: first inspect EasyAdmin’s Twig and symfony/twig-bridge constraints and the CI development dependencies. Reproduce the reported state at 29cb525 with Twig 4.0.0-beta1 and Twig Bridge 8.1.10, checking VichFormThemeTest and the TemplateWrapper::unwrap() failure seen with 8.0.15. Done means the Twig 4 constraints and CI are updated after the pending Twig and Twig CS Fixer releases, or a maintainer records the decision.

Written by the indexing model from the issue text.

Description

EasyAdmin 5.x currently requires Twig ^3.23. At 29cb525, all 4,415 tests passed with Twig 4.0.0-beta1 and Twig Bridge 8.1.10 after removing Twig CS Fixer from the test checkout. With Twig Bridge 8.0.15, all six VichFormThemeTest cases failed because Twig 4 requires an environment argument to TemplateWrapper::unwrap().

Two releases are still pending.

The form fix has already shipped in Twig Bridge 6.4.46, 7.4.19, and 8.1.7. EasyAdmin's current constraints still allow versions such as 8.0.15. Symfony PR #66043

Would EasyAdmin 5.x accept requiring symfony/twig-bridge ^6.4.46 | ^7.4.19 | ^8.1.7? These minimums would also apply to projects using Twig 3.

Dominant language
PHP
Stars
4.3k
Forks
1.1k
Avg merge
2d 9h
Merged PRs (30d)
52

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EasyCorp/EasyAdminBundle

All issues in EasyCorp/EasyAdminBundle

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.