[TASK] Avoid constructor argument of TemplatePaths
A previous patch already avoided calls to the constructor of `TemplatePaths`, which is deprecated if called with an argument since Fluid v2.15. This follow-up covers remaining places. Furthermore, both usages of `GeneralUtility::makeInstance()` are converted to `new` to harmonize the creation of those objects in the Core. Now every occurrences use `new`. `ksort()` is removed because this is done internally in `TemplatePaths` setters. It was necessary before because of the merging behavior of `extractPathArrays()`, which is no longer used now (and is also deprecated in Fluid). Resolves: #104860 Related: #104823 Releases: main Change-Id: Ic16638e8512f6272dbd52bbf0f65fb405b8483cf Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85926 Tested-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Simon Praetorius <simon@praetorius.me> Reviewed-by:
Simon Praetorius <simon@praetorius.me> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- typo3/sysext/form/Classes/Domain/Finishers/EmailFinisher.php 14 additions, 25 deletionstypo3/sysext/form/Classes/Domain/Finishers/EmailFinisher.php
- typo3/sysext/form/Tests/Unit/Domain/Finishers/EmailFinisherTest.php 25 additions, 25 deletions...xt/form/Tests/Unit/Domain/Finishers/EmailFinisherTest.php
- typo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php 7 additions, 8 deletionstypo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php
Please register or sign in to comment