Problem/Motivation

In Twig 3.31.0, an optional boolean $check parameter has been annotated to be added to Twig\Loader\FilesystemLoader::addPath in the next major. Drupal\Core\Template\Loader\FilesystemLoader::addPath needs to be updated to match (or a deprecation ignore added), because otherwise contrib projects can fail in CI, since while core is on Twig 3.30.0, core-recommended does not pin Twig to a minor version.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3641104

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

godotislate created an issue. See original summary.

phenaproxima made their first commit to this issue’s fork.

phenaproxima’s picture

Status: Active » Needs review

This updates Twig as well, so that the reason for the new parameter is clear. But if that's a scope overstep, obviously I can roll that piece back.

xjm’s picture

I missed this and was making #3641267: Update Twig for Nov. 24 release but yeah, we will probably need both.

xjm’s picture

Since the other issue already has multiple MRs, we'll fold this in over there.

xjm’s picture

Status: Needs review » Closed (duplicate)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.