Skip to content

Commit 2cf4f7a

Browse files
authored
Fix the loading of the NormalizerInterface stub
The precise return type is available upstream only in Symfony 8.1.
1 parent 6e3b7a5 commit 2cf4f7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Stubs/Symfony/StubFilesExtensionLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public function getFiles(): array
124124

125125
if ($this->isInstalledVersionBelow('symfony/serializer', '7.4.0.0')) {
126126
$files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.stub';
127-
$files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/NormalizerInterface.stub';
128127
}
129128

130129
if ($this->isInstalledVersionBelow('symfony/serializer', '8.1.0.0')) {
@@ -140,6 +139,7 @@ public function getFiles(): array
140139
$files[] = $stubsDir . '/Symfony/Component/Serializer/Exception/UnexpectedValueException.stub';
141140
$files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.stub';
142141
$files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/NormalizableInterface.stub';
142+
$files[] = $stubsDir . '/Symfony/Component/Serializer/Normalizer/NormalizerInterface.stub';
143143
}
144144

145145
if ($this->isInstalledVersionBelow('symfony/validator', '5.4.0.0')) {

0 commit comments

Comments
 (0)