X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/4d24b7426da325a32cdc5bd54714d16bfba7c378..dbe6f6710034af730e633e1c810ad7f020fe9551:/Transformer/DanceTransformer.php?ds=inline diff --git a/Transformer/DanceTransformer.php b/Transformer/DanceTransformer.php index 16673c4..123f562 100644 --- a/Transformer/DanceTransformer.php +++ b/Transformer/DanceTransformer.php @@ -35,10 +35,10 @@ class DanceTransformer implements DataTransformerInterface { /** * Transforms a dance object array or collection to an int array * - * @param Dance $dances The dance instances array + * @param Collection|array $dances The dance instances array * @return array The dance ids */ - public function transform($dances) { + public function transform(mixed $dances): mixed { //Without dances if (null === $dances) { return []; @@ -60,7 +60,7 @@ class DanceTransformer implements DataTransformerInterface { * @throws TransformationFailedException when object (dance) is not found * @return array The dance instances array */ - public function reverseTransform($ids) { + public function reverseTransform(mixed $ids): mixed { //Without ids if ('' === $ids || null === $ids) { $ids = [];