Skip to content

Commit 8d80fcf

Browse files
adamwojsViniTou
authored andcommitted
[symfony/form] Fixed incompatible Symfony\Component\Form\DataTransformerInterface implementations
1 parent 0ea9f4a commit 8d80fcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/FieldType/Mapper/ParametersTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
final class ParametersTransformer implements DataTransformerInterface
1717
{
18-
public function transform($value)
18+
public function transform($value): ?string
1919
{
2020
if ($value === null) {
2121
return null;
@@ -24,7 +24,7 @@ public function transform($value)
2424
return Yaml::dump($value, 2, 4);
2525
}
2626

27-
public function reverseTransform($value)
27+
public function reverseTransform($value): mixed
2828
{
2929
if ($value === null) {
3030
return null;

0 commit comments

Comments
 (0)