[BUGFIX] Fix the return type annotations of JsonView 99/56499/3
authorOliver Klee <typo3-coding@oliverklee.de>
Sat, 31 Mar 2018 18:41:34 +0000 (20:41 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Wed, 4 Apr 2018 15:10:52 +0000 (17:10 +0200)
commitde0dd5a4a40c285bb5abf44adcc60a7140a845d6
treed7881e67ffa821f1d6ed7d6f5f16f71ab981e3da
parent8ae0820eb3340f3a9d4318bebc998a0a2de15dd8
[BUGFIX] Fix the return type annotations of JsonView

transformValue will return the argument (mixed) untransformed if it is no
array or object and thus needs to return mixed as well.

transformObject will return a string for DateTime and hence needs to have
string as an additional return type.

Resolves: #84570
Releases: master, 8.7
Change-Id: I4d73f060eebb20b6f521fa685eca99acb688c702
Reviewed-on: https://review.typo3.org/56499
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/extbase/Classes/Mvc/View/JsonView.php