Skip to content

Commit 809c1e6

Browse files
authored
Load more form stubs conditionally (#485)
1 parent 1af9b7c commit 809c1e6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

extension.neon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ parameters:
1313
stubFiles:
1414
- stubs/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.stub
1515
- stubs/Symfony/Component/Form/AbstractType.stub
16-
- stubs/Symfony/Component/Form/Exception/ExceptionInterface.stub
17-
- stubs/Symfony/Component/Form/Exception/RuntimeException.stub
18-
- stubs/Symfony/Component/Form/Exception/TransformationFailedException.stub
1916
- stubs/Symfony/Component/Form/FormBuilderInterface.stub
2017
- stubs/Symfony/Component/Form/FormConfigBuilderInterface.stub
2118
- stubs/Symfony/Component/Form/FormConfigInterface.stub

src/Stubs/Symfony/StubFilesExtensionLoader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public function getFiles(): array
6060
}
6161

6262
if ($this->isInstalledVersionBelow('symfony/form', '6.2.0.0')) {
63+
$files[] = $stubsDir . '/Symfony/Component/Form/Exception/ExceptionInterface.stub';
64+
$files[] = $stubsDir . '/Symfony/Component/Form/Exception/RuntimeException.stub';
65+
$files[] = $stubsDir . '/Symfony/Component/Form/Exception/TransformationFailedException.stub';
6366
$files[] = $stubsDir . '/Symfony/Component/Form/DataTransformerInterface.stub';
6467
}
6568

0 commit comments

Comments
 (0)