Problem/Motivation

Currently incldued 1.23.1 Twig has problem with whitespace on PHP 7.4: https://github.com/twigphp/Twig/issues/3248

Steps to reproduce

Proposed resolution

Update Twig to latest that still supports PHP 5: 1.42.5.
That requires polyfill-cytpe, so used the one that still supports PHP 5 too: 1.19
Also update yaml while we are at it to the last one that supported PHP 5: 3.4.41

Since there are more cross-dependencies now, let's also include a full composer lib build with autoload and all, that helps not to have a custom loader that did not work anymore with these many dependencies.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Gábor Hojtsy created an issue. See original summary.

gábor hojtsy’s picture

StatusFileSize
new1.81 MB
gábor hojtsy’s picture

StatusFileSize
new1.81 MB

Rerolled as binary but removed the DS Store.

gábor hojtsy’s picture

StatusFileSize
new285 bytes

Here is a noop patch for comparison, should theoretically fail on PHP 7.4.

gábor hojtsy’s picture

Status: Needs review » Fixed

Ok the fail on PHP 7.4 nicely demonstrated the Twig difference without updating Twig. The updated Twig looks good though.

Also no need to port to the Drupal 8/9 version of the project as that uses the Drupal included Twig version, and as long as the same tests pass there its good. (This patch does not include test changes at all).

  • 4685dd0 committed on 7.x-3.x
    Issue #3298467 by Gábor Hojtsy: Update dependencies: twig to 1.42.5,...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.