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()); } }