[TASK] Move render arguments to initializeArguments() in BytesVH
Move the argument registrations away from the render() method to initializeArguments(), to prevent any errors with PHP7 and subclassed ViewHelpers if/when render() method signatures change. Change the UnitTest form RadioViewHelperTest with setArguments(). Resolves: #77046 Releases: master Change-Id: I46b256988280e4266f41570959115b9c1aaedbf7 Reviewed-on: https://review.typo3.org/48927 Reviewed-by:Bjoern Jacob <bjoern.jacob@tritum.de> Tested-by:
Bjoern Jacob <bjoern.jacob@tritum.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/fluid/Classes/ViewHelpers/Format/BytesViewHelper.php 51 additions, 24 deletions...sext/fluid/Classes/ViewHelpers/Format/BytesViewHelper.php
- typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/BytesViewHelperTest.php 28 additions, 16 deletions...uid/Tests/Unit/ViewHelpers/Format/BytesViewHelperTest.php
Please register or sign in to comment