diff --git a/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/symfony/controller/form/AutoCompletionRelationTransformer.xtend b/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/symfony/controller/form/AutoCompletionRelationTransformer.xtend index b7915f237..e8c1a986b 100644 --- a/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/symfony/controller/form/AutoCompletionRelationTransformer.xtend +++ b/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/symfony/controller/form/AutoCompletionRelationTransformer.xtend @@ -48,7 +48,7 @@ class AutoCompletionRelationTransformer { /** * Transforms a single object or a list of objects to a string with identifiers. */ - public function transform($entities) + public function transform(mixed $entities): mixed { $result = ''; if (null === $entities) { @@ -78,7 +78,7 @@ class AutoCompletionRelationTransformer { * * @throws TransformationFailedException if entity is not found */ - public function reverseTransform($value): mixed + public function reverseTransform(mixed $value): mixed { if (!$value) { return $this->isMultiple ? new ArrayCollection() : null; diff --git a/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/symfony/controller/form/UploadFileTransformer.xtend b/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/symfony/controller/form/UploadFileTransformer.xtend index 5a40779ad..642e8546b 100644 --- a/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/symfony/controller/form/UploadFileTransformer.xtend +++ b/bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/symfony/controller/form/UploadFileTransformer.xtend @@ -52,7 +52,7 @@ class UploadFileTransformer { /** * Transforms a filename to the corresponding upload input array. */ - public function transform($file) + public function transform(mixed $file): mixed { return [ $this->fieldName => $file, @@ -63,7 +63,7 @@ class UploadFileTransformer { /** * Transforms a result array back to the File object. */ - public function reverseTransform($data): mixed + public function reverseTransform(mixed $data): mixed { $deleteFile = false; $uploadedFile = null;