File tree 5 files changed +29
-1
lines changed
stubs/Symfony/Component/Form
5 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,15 @@ parameters:
22
22
- stubs/Symfony/Component/Console/Command.stub
23
23
- stubs/Symfony/Component/Console/Helper/HelperInterface.stub
24
24
- stubs/Symfony/Component/Console/Output/OutputInterface.stub
25
- - stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
26
25
- stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub
27
26
- stubs/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.stub
28
27
- stubs/Symfony/Component/EventDispatcher/EventDispatcherInterface.stub
29
28
- stubs/Symfony/Component/EventDispatcher/EventSubscriberInterface.stub
30
29
- stubs/Symfony/Component/EventDispatcher/GenericEvent.stub
30
+ - stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
31
+ - stubs/Symfony/Component/Form/Exception/ExceptionInterface.stub
32
+ - stubs/Symfony/Component/Form/Exception/RuntimeException.stub
33
+ - stubs/Symfony/Component/Form/Exception/TransformationFailedException.stub
31
34
- stubs/Symfony/Component/Form/DataTransformerInterface.stub
32
35
- stubs/Symfony/Component/Form/FormBuilderInterface.stub
33
36
- stubs/Symfony/Component/Form/FormInterface.stub
Original file line number Diff line number Diff line change @@ -14,13 +14,17 @@ interface DataTransformerInterface
14
14
* @phpstan-param T|null $value The value in the original representation
15
15
*
16
16
* @phpstan-return R|null The value in the transformed representation
17
+ *
18
+ * @throws TransformationFailedException
17
19
*/
18
20
public function transform($value);
19
21
20
22
/**
21
23
* @phpstan-param R|null $value The value in the transformed representation
22
24
*
23
25
* @phpstan-return T|null The value in the original representation
26
+ *
27
+ * @throws TransformationFailedException
24
28
*/
25
29
public function reverseTransform($value);
26
30
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Symfony\Component\Form\Exception;
4
+
5
+ interface ExceptionInterface extends \Throwable
6
+ {
7
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Symfony\Component\Form\Exception;
4
+
5
+ class RuntimeException extends \RuntimeException implements ExceptionInterface
6
+ {
7
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Symfony\Component\Form\Exception;
4
+
5
+ class TransformationFailedException extends RuntimeException
6
+ {
7
+ }
You can’t perform that action at this time.
0 commit comments