[BUGFIX] Fix the return type annotations of JsonView 52/56552/2
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:27:20 +0000 (17:27 +0200)
commitd0da431aea246eaef8b41935b5a64c3554518762
tree41a4f0da2e68f5d1524b1d4b4e8856028a386beb
parent7c4dee561a088943fe2057db8b8db801ed18e16d
[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
Reviewed-on: https://review.typo3.org/56552
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: TYPO3com <no-reply@typo3.com>
typo3/sysext/extbase/Classes/Mvc/View/JsonView.php