From 2cf4f7a613a2c436ac9176e26040eb02a8940e8d Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 18 May 2026 15:40:23 +0200 Subject: [PATCH] Fix the loading of the NormalizerInterface stub The precise return type is available upstream only in Symfony 8.1. --- src/Stubs/Symfony/StubFilesExtensionLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stubs/Symfony/StubFilesExtensionLoader.php b/src/Stubs/Symfony/StubFilesExtensionLoader.php index 875489e9..b0bd0eaa 100644 --- a/src/Stubs/Symfony/StubFilesExtensionLoader.php +++ b/src/Stubs/Symfony/StubFilesExtensionLoader.php @@ -124,7 +124,6 @@ public function getFiles(): array if ($this->isInstalledVersionBelow('symfony/serializer', '7.4.0.0')) { $files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.stub'; - $files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/NormalizerInterface.stub'; } if ($this->isInstalledVersionBelow('symfony/serializer', '8.1.0.0')) { @@ -140,6 +139,7 @@ public function getFiles(): array $files[] = $stubsDir . '/Symfony/Component/Serializer/Exception/UnexpectedValueException.stub'; $files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.stub'; $files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/NormalizableInterface.stub'; + $files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/NormalizerInterface.stub'; } if ($this->isInstalledVersionBelow('symfony/validator', '5.4.0.0')) {