From 195c7595f08514f0d32faeab0752100b71732a15 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Thu, 12 Oct 2023 22:42:16 +0200 Subject: [PATCH] Fix ci --- composer-require-checker.json | 1 + composer.json | 4 ++-- src/Environment/StubbedEnvironment.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer-require-checker.json b/composer-require-checker.json index 72481f9b..b2c38c85 100644 --- a/composer-require-checker.json +++ b/composer-require-checker.json @@ -7,6 +7,7 @@ "Symfony\\Bridge\\Twig\\TokenParser\\TransDefaultDomainTokenParser", "Symfony\\Bridge\\Twig\\TokenParser\\TransTokenParser", "Symfony\\UX\\TwigComponent\\TwigComponentBundle", + "Symfony\\UX\\TwigComponent\\Twig\\PropsTokenParser", "Twig\\Extra\\Cache\\TokenParser\\CacheTokenParser" ] } diff --git a/composer.json b/composer.json index 645dce7a..709a4074 100644 --- a/composer.json +++ b/composer.json @@ -58,8 +58,8 @@ ], "config": { "allow-plugins": { - "infection/extension-installer": true, - "ergebnis/composer-normalize": true + "ergebnis/composer-normalize": true, + "infection/extension-installer": true }, "sort-packages": true } diff --git a/src/Environment/StubbedEnvironment.php b/src/Environment/StubbedEnvironment.php index ac0779ca..e6c4128a 100644 --- a/src/Environment/StubbedEnvironment.php +++ b/src/Environment/StubbedEnvironment.php @@ -76,6 +76,7 @@ public function __construct( if (class_exists(TwigComponentBundle::class)) { $this->addTokenParser(new ComponentTokenParser()); if (class_exists(PropsTokenParser::class)) { + /** @psalm-suppress InternalClass */ $this->addTokenParser(new PropsTokenParser()); } }