Twig doesn't support ===

Created on 23 February 2023, almost 2 years ago
Updated 1 March 2023, over 1 year ago

Domain version 8.x-1.0-beta7 introduced a bug with a change made in issue #3285071. That issue's patch changed a '==' to a '===' in a twig file, but twig doesn't support '==='. This patch changes that line back to what it was previously. If instead, this should be a strict '===', then this patch should be updated to use 'is same as(true)'.

Twig documentation: https://twig.symfony.com/doc/2.x/tests/sameas.html

This bug causes this error message:

Twig\Error\SyntaxError: Unexpected operator of value "=". Did you try to use "===" or "!==" for strict comparison? Use "is same as(value)" instead. in Twig\ExpressionParser->parsePrimaryExpression() (line 22 of modules/contrib/domain/domain/templates/domain-nav-block.html.twig).

πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Jonathan_W Austin, TX, USA

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

Comments & Activities

Production build 0.71.5 2024