Fix: must be compatible with Twig\Template::display

Created on 23 September 2024, about 2 months ago

Problem/Motivation

Error thrown after upgrade of twig package: NOTICE: PHP message: PHP Fatal error: Declaration of Drupal\graphql_twig\GraphQLTemplateTrait::display(array $context, array $blocks = []) must be compatible with Twig\Template::display(array $context, array $blocks = []): void in /project/app/public/modules/contrib/graphql_twig/src/GraphQLTemplateTrait.php on line 61

Steps to reproduce

Upgrade twig >= 3.9, visit the website.

Proposed resolution

The fix was already implemented in the dev branch here: https://git.drupalcode.org/project/graphql_twig/-/commit/d44e2ace80a22a2... but there is no release yet

Remaining tasks

Publish a new release including the fix.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France GuillaumePacilly

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024