From 48252d6b8c8c29758c67d5c2871454e725683a8a Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Thu, 30 Jul 2020 22:51:07 +0000 Subject: [PATCH] [UTIL][FORM] Add form transformer array <--> string --- src/Util/Form/ArrayTransformer.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Util/Form/ArrayTransformer.php b/src/Util/Form/ArrayTransformer.php index 48c23c7499..fadd61a406 100644 --- a/src/Util/Form/ArrayTransformer.php +++ b/src/Util/Form/ArrayTransformer.php @@ -21,7 +21,7 @@ * Handle network public feed * * @package GNUsocial - * @category Controller + * @category Form * * @author Hugo Sales * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org @@ -36,10 +36,12 @@ use Symfony\Component\Form\Exception\TransformationFailedException; class ArrayTransformer implements DataTransformerInterface { + // Can't use type annotations, to conform to interface + /** - * Array to string, but can't use type annotations + * @param array $a * - * @param mixed $a + * @return string */ public function transform($a) { @@ -50,9 +52,9 @@ class ArrayTransformer implements DataTransformerInterface } /** - * String to array, but can't use type annotations + * @param string $s * - * @param mixed $s + * @return array */ public function reverseTransform($s) {